Describe the bug
running "graphql-codegen" now gives the error
TypeError: Cannot read property 'location' of null
at /Users/<me>/Documents/Apps/<project>/node_modules/@graphql-toolkit/core/index.cjs.js:622:90
To Reproduce
upgrading to 1.12.0
codegen.yml config file:schema: http://localhost:5000/graphql
documents: ./src/**/*.{ts,tsx}
overwrite: true
generates:
./src/graphql/types.tsx:
config:
withHooks: true
withComponent: false
withHOC: false
withMutationFn: false
addDocBlocks: false
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
Expected behavior
generates types without failing
Environment:
@graphql-codegen/1.12.0: I changed nothing in my codebase but upgrading now creates this error
Could you try with the canary version?
1.12.1-alpha-ca51a54f.1+ca51a54f
@ardatan working!
Let's keep it open until we release a patch version :)
Oops my bad - tabbed to the close and comment button by accident ;) Thanks for the fix
Fixed in v1.12.1 :)
Thanks @ardatan
Most helpful comment
Oops my bad - tabbed to the close and comment button by accident ;) Thanks for the fix