ERROR: Duplicate “graphql” modules cannot be used at the same time when starting code-first NextJS JSS application
I’m trying to create a new code-first NextJS demo using the JSS initializer for experimental purposes only:
However, running jss start
always gives me this error:
I believe this error is caused by the graphql-let command in the package.json:
"bootstrap": "ts-node --project tsconfig.scripts.json scripts/bootstrap.ts && graphql-let"
I tried to add resolutions
to this file but it didn’t help as npm
was used instead of yarn
.
My jss --version
is: 20.0.3 and my node version is 16.15.1
.
Does anyone have the same issue and do you know how to fix it?
Read more here: Source link