-
Notifications
You must be signed in to change notification settings - Fork 60
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
Error building gatsby after updating to 7.7.0 #245
Comments
I'm also seeing error having updated to 7.7.0 with empty null fields in an array of reference objects - I've had to downgrade to earlier version. You can see the field names but they are all null. References which are not in an array work and the fields are not null. |
We are seeing a similar bug too, also had to downgrade. |
Same here, moving back to 7.6.3 fixed it for me. |
There are not enough tests to cover such drastic changes and obviously, the question is always "Which side should maintain this plugin, now: Gatsby/Netlify or Sanity?" |
@ascorbic A colleague mentioned that it looks like |
Thanks for the tag. I'm going to look into this today. |
Can those of you who are having these issue share the specific queries that are causing the problem, and if possible the relevant parts of the schema? I've not been able to reproduce this myself, but this may just be that my schema does't include the particular types that cause this. You'll find the schema in |
Hi @ascorbic, I don't have the time to put together what you need at the moment, but I'll link you to this thread on Sanity's slack where this was discussed, maybe the info there is enough for you: https://sanity-io-land.slack.com/archives/CEMV34XAB/p1689786840037059 |
Thanks |
Let me know if the attached helps. |
reverting it to 7.6.3 fixed it for me too. |
If anyone else is able to share the error (with query), |
@dmorda is the schema you shared from the same plugin version as the one that was erroring? Also, can you let me know which version of gatsby that you're using? |
Sorry, I forgot to include those details. The files I attached were from the build that is failing. Specifically, I upgraded gatsby-source-sanity from 7.6.3 (working) to 7.8.0 (not working). When I ran the build that is failing, I was using [email protected]. I'm on macOS Apple Silicon using Node 18.17.0. |
ERROR #85901 GRAPHQL.UNKNOWN
There was an error in your GraphQL query:
Cannot read properties of undefined (reading 'type')
works on 7.6.3 - Is this a change or a bug ?
The text was updated successfully, but these errors were encountered: