Errors during generation are non-existent
See original GitHub issueDescribe the bug
I’ve recently updated to v2 of the CLI and the associated plugins. Since then the errors that are reported are not helpful in that only a partial of the error is displayed. This makes tracking down errors extremely more challenging. Please see the below screenshots and information. I have used the debug
and errorsOnly
flags and they do not provide any additional information toward identifying the reason and therefore cause of the failure.
Your Example Website or App
None provided
Steps to Reproduce the Bug or Issue
To reproduce I have the following CLI version and plugins installed which at the time are the most current versions. Create a query/mutation that is incorrect or doesn’t exist to cause any error in generation. Review the reported errors.
Expected behavior
As a user, I am expecting to see detailed enough errors to allow me to track down my errors to resolve. Version 1 of the CLI provided adequate information around errors.
Screenshots or Videos
Platform
- OS: Windows
- NodeJS: 14.18.0
- @graphql-codegen/cli@2.12.0
- @graphql-codegen/typed-document-node@2.3.3
- @graphql-codegen/typescript@2.7.3
- @graphql-codegen/typescript-operations@2.5.3
To reproduce I have the following CLI version and plugins installed which at the time are the most current versions.
Codegen Config File
schema:
- https://graphql-federated-gateway...../graphql
- 'schema.graphql'
documents: './src/**/*.graphql'
generates:
./src/generated/graphql.tsx:
config:
enumsAsConst: true
plugins:
- typescript
- typescript-operations
- typed-document-node
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:17 (1 by maintainers)
It appears
graphql-codegen/cli@2.9.1
introduced the issueApologies, completely missed this. Just want to confirm that this does in fact also fix the issue for us. Thank you!