-
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-contentful] Invariant violation in build-node-types.js #2518
Comments
Hmm so the problem is that there's apparently a broken reference between two of your content in Contentful. I thought Contentful would enforce that but apparently not? In any case, source-contentful should double-check that a referenced node exists before creating the link. If you want to try fixing this, look at the source for source-contentful and search for |
I ran into the exact same error message. If the error occurred after you made changes to your Contentful models, |
This was quite useful knowledge to further debugging. I had created all the content programmatically by querying the API, but had marked it as "draft" instead of "published". Marking it all as published resolved the above error, but now I get:
The error message is empty, yet I still do see the content on the site. |
@KyleAMathews is right about that, I wanna add the |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
I am always having this issue unless I clear cache. Are there any more specific hints so we can fix this in the plugin? |
same here, this is second issue I find it's closed because there is a "workaround" instead of being really fixed, way to build trust around your platform. |
@itdsntwork @ryudice Could you open a new issue for this? The original report is from 2017, and the schema related parts of the code base have since been rewritten (e.g. the |
I face up with the same issue with gatsby 4. How did you solve the issue @hellais ? |
I am encountering issues in formulating queries using graphql queries when speaking to contentful.
In particular the stacktrace I get is the following:
This error message is quite cryptic and I believe it's not related to my code, but rather to the contentful -> graphql transformation layer.
To reproduce the issue you can run the code from this repository at this commit: https://github.com/OpenObservatory/ooni-website/tree/df04defdf83a223ac4d9b8b130b20dc7907b5f27 via:
The text was updated successfully, but these errors were encountered: