Closed ostaoleho closed 1 year ago
I have the same error.
gatsby-source-prismic: ^5.2.10 gatsby: ^5.3.3 node: 18.15.0
This issue may be fixed in a recent version. Please update to the latest version and try again. If the issue continues to be a problem, please open a new issue. Thank you!
See the documentation for guides on updating to the latest versions: Gatsby + Prismic Migration Guides
Versions
Steps to reproduce
Update Gatsby to v4 and Prismic to v5 an image with empty data returns null and throws an error.
What is expected?
Preview loads without image error.
What is actually happening?
I have the page templates builded with Prismic. One of content is image that is not required. I made upgrade from gatsby from v3 to v4 and Prismic from v3 to v5 build and site works correct. But when I try visit site with preview mode i have an error Value is not expected type Image.
In Prismic Image field is default
In preview data structure come like this. Thumbnail is object but image is null.
In schema I have this code