Invalid AST Node error with graphql@16
stasyaner opened this issue · 2 comments
stasyaner commented
Hello.
I'm getting the below error with graphql@16:
yarn run v1.22.17
$ relay-compiler
Writing ts
ERROR:
Invalid AST Node: { kind: "Root", operation: "query", loc: { kind: "Source", start: 3, end: 54, source: [Source] }, metadata: null, name: "AppQuery", argumentDefinitions: [], directives: [], selections: [[Object]], type: Query }.
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It works with graphql@15.7.2.
I've created a repo to see it in action.
Thanks.
saihaj commented
I think this is an issue with relay compiler don’t believe it supports v16 yet cause it still uses v15 in peerDep https://github.com/facebook/relay/blob/5e3851fa593fef85fbf57e2644c578a1240282cc/packages/relay-compiler/package.json#L37
… On Nov 2, 2021, at 5:57 AM, Stanislav ***@***.***> wrote:
Hello.
I'm getting the below error with ***@***.***:
yarn run v1.22.17
$ relay-compiler
Writing ts
ERROR:
Invalid AST Node: { kind: "Root", operation: "query", loc: { kind: "Source", start: 3, end: 54, source: [Source] }, metadata: null, name: "AppQuery", argumentDefinitions: [], directives: [], selections: [[Object]], type: Query }.
error Command failed with exit code 100.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It works with ***@***.***
I've created a repo to see it in action.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.