Closed angeloashmore closed 3 years ago
The following PR has been opened to fix the issue: https://github.com/gatsbyjs/gatsby/pull/33227
Thanks for the report and the fix!
I merged the fix, but we will likely wait with another beta release until Monday (it's been quite a wild last few days/weeks and for today and weekend we wanted to "freeze" releases baring some absolutely critical problem, which I think this is not (?) as there is temporary workaround with commenting null
fields out)
Thanks @pieh! The example I linked is a bit contrived. In a real project, those schemas are fetched from an API and populated in plugin options (or provided manually like in the example).
While this is a blocker for all Prismic projects, a Monday release is reasonable. Thanks again 👍
Hey @pieh, any update on publishing a new beta version with this fix? Thanks!
Hey @angeloashmore - this was released in the meantime on the next
tag :)
Thanks for the update @LekoArts!
Preliminary Checks
Description
This issue is for the Gatsby 4 beta.
When a plugin contains options with
null
at certain depths and the site is using deferred static generation (DSG),gatsby build
will fail.Reproduction Link
https://github.com/angeloashmore/gatsby-4-dsg-null-bug
Steps to Reproduce
gatsby build
. The build will fail and print the above error.gatsby-config.js
, comment out lines 21 and 43 (wherenull
appears).gatsby build
. The build will succeed.The presence of
null
kills the build.Expected Result
The build succeeds with valid plugin options.
Actual Result
The build fails while processing valid plugin options.
Environment
Config Flags
No flags