-
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 production build breaking if content is removed from Contentful field #2881
Comments
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues as many of them have already been resolved with the latest updates or explained in a previous issue. Feel free to open a new one if you still experience this problem or a similar one! 👍 |
Hey Folks, https://medium.com/@Zepro/contentful-reference-fields-with-gatsby-js-graphql-9f14ed90bdf9 |
@Khaledgarbaya Doesn't seem to work with a single reference type (rather than one-to-many) since the field ( |
+1 watching this |
I'm also having this issue. |
Also having this issue |
Same here, deleting a post on contentful breaks the app. Any workarounds? |
Running into this issue as well. |
Running into this. Watching |
os version: windows 10 (10.0.15063 Build 15063)
node version: v8.4.0
gatsby version: 1.9.108
gatsby-source-contentful version: 1.3.17
Summary
Production build breaks with a graphql schema error when Contentful optional field is empty in all entries.
Reproduction Steps
gatsby build
and note that site builds as expected.gatsby build
and note that the site build fails.Notes:
I've started investigating this on a local PR branch, but need a little assistance in choosing an approach to fix, as I'm very new to graphql. Options:
entryItemFields[entryItemFieldKey]
) from null to an empty string or other flagged value.The text was updated successfully, but these errors were encountered: