We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It appears code errors are still being swallowed. I made a minimal repo showing the issue.
clone this repo: https://github.com/jsphweid/graphql-code-generator-bug npm i npm run generate:code
npm i
npm run generate:code
it fails with an unhelpful error message: Failed to load schema from ./src/index.ts. (but WHERE did it fail?!?!)
Failed to load schema from ./src/index.ts.
go to src/Context.ts comment out the bad import import * as Archive from "../../../raw-archive/src";
import * as Archive from "../../../raw-archive/src";
run npm run generate:code again. It works.
Why is it hiding the actual code error?
It's really time-consuming to find bugs like this in large codebases. It'd be awesome if this were fixed.
The text was updated successfully, but these errors were encountered:
Hi @jsphweid We recently did some major changes in the implementation of graphql-toolkit, so it might come from there. I'll take a look.
graphql-toolkit
Thank you for reporting it!
Sorry, something went wrong.
@jsphweid
fixed it in: #2339 can you please try the latest alpha? 1.5.1-alpha-521f8ddf.23
1.5.1-alpha-521f8ddf.23
@dotansimha
Unable to load schema from file "/Users/josephweidinger/Desktop/temp/src/index.ts" due to import error: Cannot find module '../../../raw-archive/src'
much better error!
Fixed in 1.6.0.
No branches or pull requests
It appears code errors are still being swallowed. I made a minimal repo showing the issue.
clone this repo: https://github.com/jsphweid/graphql-code-generator-bug
npm i
npm run generate:code
it fails with an unhelpful error message:
Failed to load schema from ./src/index.ts.
(but WHERE did it fail?!?!)go to src/Context.ts
comment out the bad import
import * as Archive from "../../../raw-archive/src";
run
npm run generate:code
again. It works.Why is it hiding the actual code error?
It's really time-consuming to find bugs like this in large codebases. It'd be awesome if this were fixed.
The text was updated successfully, but these errors were encountered: