-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsby-source-graphql breaks after upgrading Gatsby from v2.1 to v2.2: GraphQLError: Unknown type #12717
Comments
Thanks for the detailed report! Could you try if #12720 fixes the issue for you? Thanks a lot! |
Sorry about that, it should be fixed in #12721. |
I get a different error than you--could you maybe push a branch where we can reproduce your exact issue? I did
Of course--can validate that it works in gatsby@~2.1.0--so this definitely seems like a regression. |
@DSchau The error you are seeing was fixed in |
@stefanprobst 🎉 yup yup. With
with
|
I'm seeing the same error. So I fear this is still broken 😅. |
yes, so sorry, this is indeed not yet fully fixed (but almost 😉). Btw |
Published in [email protected] |
Have run into the same issue the last few days as well - @2.2.7 just fixed it |
Thank you for the quick fix. It works now :). |
Description
After upgrading from Gatsby v2.1.31 to v2.2.3 my project fails to compile all of a sudden, because the
gatsby-source-graphql
plugin throws the following error. I'm using this plugin to query data from the GitHub GraphQL API (v4). No source code has been changed, and I checked in the online explorer of GitHub's API: the query is still valid. I suppose the origin of this issue might lie in the new schema customization API introduced in v2.2.After downgrading to Gatsby v2.1 everything works again (also with latest version of
gatsby-source-graphql
= 2.0.15).Steps to reproduce
The source code of my website is public, so you can simply clone the repo out and run below command: https://github.com/grubersjoe/grubersjoe.de
A GitHub access token is required with the following permissions to authenticate:
An example query, which fails:
Expected result
The project should compile without complaining
GraphQL Error Unknown type "GitHub_Blob"
.Blob
is a valid object: https://developer.github.com/v4/object/blob/. All objects processed by the source plugin are prefixed withGitHub_
, as configured ingatsby-config.js
(typeName
):Actual result
The plugin is unable to correctly resolve the GraphQL schema, thus breaking the build. See above output.
Environment
The text was updated successfully, but these errors were encountered: