-
Notifications
You must be signed in to change notification settings - Fork 18
Bug in gatsby-plugin-graphql-codegen@2.7.0 when used with graphql@15.0.0 #82
Comments
Ooh very interesting, thank you for opening an issue! I'll try to fix this |
Hey @kaleabmelkie, I was unable to reproduce this error. Do you have a sample project I can use? It seems like latest version of Gatsby has yet to use graphql 15 & when I force with yarn resolution, it just choked. I must have missing something. Nevertheless I've upgraded all our dependencies to supports graphql 15, would you give it a try to see if it fixes the error? (gatsby-plugin-graphql-codegen@2.7.1) |
With v2.7.1 (and graphql@15.0.0) it logs a similar (but smaller) error on the console, but it actually launches the app and it works fine. Here is a sample project: https://codesandbox.io/s/frosty-neumann-uou9z (Fork and restart it, if you want to see the error on console) |
Thanks, that's solid! I've found this error:
Will go from there |
Hey @kaleabmelkie, thank you again for providing a reproduction! I think it boils down to incompatible issue with the graphql version Gatsby uses — I'm not sure what we can do here until Gatsby upgrades to graphql 15 :(. If you happen to use yarn, pinning Gatsby's graphql version to 14.6 seem to resolve the issue: in package.json {
"resolutions": {
"gatsby/graphql": "14.6.0"
}
} Though yarn resolution seems to be a little flaky. I fount it to work more consistently if I nuke Hope it helps — I'll keep this issue open. |
Emits error:
Here is the full log.
In case it helps, these are the versions of some of the potentially related dependencies I'm using:
UPDATE:
The problem appears when used with graphql@15.0.0. It works fine with graphql v14.6.0.
The text was updated successfully, but these errors were encountered: