Alex
Alex

Reputation: 33

Graphql Codegen Wizard Terminated Unexpected

I am trying to use the GraphQL Codegen Wizard for my application. I followed the installation instruction from this site: https://www.graphql-code-generator.com/docs/getting-started/installation

All the dependencies are successfully installed via npm with --legacy-peer-deps due to conflict. When the time to run this command below, the script ended unexpectedly. I did not get a chance to answer the question.

npx graphql-codegen init

enter image description here

what am I doing wrong?

System Details:

Upvotes: 3

Views: 839

Answers (1)

losandies
losandies

Reputation: 36

The only fix that I've come up with is downgrading to version 2.10.0 of graphql code generator.

In your package.json make this change -> "@graphql-codegen/cli": "2.10.0"

then npm install

Upvotes: 2

Related Questions