dotansimha / dotansimha/graphql-code-generator
Failed to load schema [bug]
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
### Describe the bug
I am unable to create typescript types from graphql schema.
Discussed here [discuss](https://github.com/dotansimha/graphql-code-generator/discussions/8127)
Also, I found out that, it works fine on [stackbliztt](https://stackblitz.com/edit/github-hak4gd-kbetbk?file=codegen.yml,package.json) if i run below command
`npm run codegen`
### Your Example Website or App
https://github.com/nirmaanlabs/bug
### Steps to Reproduce the Bug or Issue
`npm i`
`npm run codegen`
### Expected behavior
I should get a file with generated types
### Screenshots or Videos
[video codegen failed to read schema.zip](https://github.com/dotansimha/graphql-code-generator/files/9173939/video.codegen.failed.to.read.schema.zip)
### Platform
- OS: [Windows]
- NodeJS: [16.16.0]
- `graphql` version: [16.5.0]
- "@graphql-codegen/cli": "^2.9.1",
"@graphql-codegen/typed-document-node": "^2.3.2",
"@graphql-codegen/typescript": "^2.7.2",
"@graphql-codegen/typescript-operations": "^2.5.2",
### Codegen Config File
schema: schema.graphql
generates:
./src/generated.ts:
plugins:
- typescript
- typescript-operations
- typed-document-node
### Additional context
Coming here from the [discussion](https://github.com/dotansimha/graphql-code-generator/discussions/8127)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.