relay-tools/relay-compiler-language-typescript

Invalid AST Node error with graphql@16

stasyaner opened this issue · 2 comments

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, may be. Thanks.
Let this issue be a reference for anybody else facing the same.