question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors during generation are non-existent

See original GitHub issue

Describe 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

image image

Platform

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:closed
  • Created a year ago
  • Reactions:2
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
chriswettermancommented, Oct 9, 2022

It appears graphql-codegen/cli@2.9.1 introduced the issue

1reaction
pleunvcommented, Nov 4, 2022

@pleunv any feedback with the canary version suggested above?

Apologies, completely missed this. Just want to confirm that this does in fact also fix the issue for us. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model Error Code generation file does not exist SIMULINK ...
Hi, I got the same error an the problem was caused by a space in the folder location (e.g. C:\Users\stefa\New Folder\test, please note...
Read more >
PK33487: ADMIN TOOL ADB2GEN INCORRECTLY PARSES DDL
ADB2GEN reports a parsing error on valid TRIGGER DDL. ... PROBLEM DESCRIPTION: The ADB2GEN program detects nonexistent * * errors during TRIGGER generation....
Read more >
read me - du error code guide - Fannie Mae
Credit, Error in CST segment: Invalid or non-existent Agency ID. ... In DO/DU, the name suffix appears in the Generation field.
Read more >
Amazon SES email sending errors - AWS Documentation
Troubleshoot types of email sending-specific errors that you might encounter when you send an email through Amazon SES.
Read more >
Signal Generation (The GNU C Library)
But not all kinds of errors generate signals—in fact, most do not. For example, opening a nonexistent file is an error, but it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found