-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
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
fix: import graphql schema from js #185
Conversation
Thanks for looking into this! I just approved the workflow runs so you can try to get CI passing. Once it’s green I’ll take closer look. |
@andrewbranch Something weird is going on, the node 12 tests doesn't run at all (seems correct), and the node 14 has a strange error |
14 quit because 12 failed—you can change all the workflow configs to test on 14/16 instead of 12/14. |
Seems to be needing approval again, can you spare a moment @andrewbranch ? |
@andrewbranch One more time |
I would rather not enable |
Updated @andrewbranch |
tsconfig.json
Outdated
@@ -18,5 +17,6 @@ | |||
], | |||
"exclude": [ | |||
"test/graphql/site" | |||
] | |||
], | |||
"types": ["node", "jest"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It goes inside compilerOptions
, not at the root
You should be able to test this stuff locally by the way—CI isn’t doing anything fancy |
Closing due to inactivity |
As per the Gatsby migrations docs, we can't use
fs
anymore to import the GraphQL schemahttps://www.gatsbyjs.com/docs/reference/release-notes/migrating-source-plugin-from-v3-to-v4/#the-new-way-4
old way
new way
We do pretty much the same, so:
createSchemaCustomization
hookThis should now allow us to us the plugin with GatsbyV4.
Tested with
npm pack
and local import in my website.Fixes: #174