Open ldiqual opened 4 years ago
This is deviated version of graphql. Downgrade version suit with graphql-schema-typescript. Example my version graphql-schema-typescript is 1.2.9, i use graphql version 14.0.1
Same problem here. It would be good update graphql
dependency version
When trying to generate typescript code from an invalid graphql file:
What happens is that https://github.com/dangcuuson/graphql-schema-typescript/blob/master/src/index.ts#L53 parses the schema file from a path, and it throws because there's a syntax error, but then the error is silenced and the code tries to parse the actual path string, which results in the error above.