graphql-codegen fails with "Error: command failed" #9918
Replies: 2 comments
-
Still struggling with this one. Can anyone please help? Is the TypeScript plugin standalone, or do I need to add something else? All I am trying to do is to ingest a schema and generate typescript types. Specifically just |
Beta Was this translation helpful? Give feedback.
-
I realize this question was asked quite a while ago, but for anyone finding this via Google, I found the solution: The issue in the provided code example (at least in my case) was that the output was defined as a folder, which doesn't work. You need to specify a single file instead. For example:
Hope this helps someone! |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to use the typescript plugin
@graphql-codegen/typescript
to generate Typescript types from my graphql schema. However the cli is erroring out without much information. Can someone please help?Here's my codegen configuration:
These are the dev dependencies in my package.json:
I have boiled down my graphql schema to just one type:
Here's the error output:
Beta Was this translation helpful? Give feedback.
All reactions