How to solve Cannot convert value to AST: {} ?
#8095
Unanswered
WinSanPang
asked this question in
Q&A
Replies: 1 comment
-
|
can you share a codesandbox where this is breaking? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I'm looking to setup our project to use
graphql-code-generator(we've previously used Apollo CLI codegen for our other repos but understand it's being deprecated) but running into some issues when running the generator.Dependencies (only included relevant ones here but can provide full list):
Scripts (only included relevant ones here but can give full list if needed):
"rover-schema": "npx -p @apollo/rover rover graph introspect http://localhost:3000/graphql_v2 > ./schema.graphql","generate": "graphql-codegen"Codegen.yaml file:
Snippet of schema.graphql file:
TLDR/Context:
rover-schemato generate ourschema.graphqlfile@graphql-codegen/cliand installed@graphql-codegen/typescript-operationsas well as@graphql-codegen/typescriptas per the Typescript specific guide herecodegen.yamlfile to'./schema.graphql'npm run generate, I get back an error statingCannot convert value to AST: {}I've had a look at other threads mentioning a similar error but couldn't really find a solution. So any advice or help would be super appreciated 🙏 Lemme know if I should provide any more info/details
Beta Was this translation helpful? Give feedback.
All reactions