prismicio / prismic-gatsby

Gatsby plugins for building websites using Prismic
https://prismic.io/docs/technologies/gatsby
Apache License 2.0
313 stars 96 forks source link

No type for path #512

Closed ThAlmighty closed 1 year ago

ThAlmighty commented 2 years ago

Versions

Reproduction

We are running into a problem where if we've generated our static site including the custom type definitions, the preview will break if a custom type is updated after that update without rebuilding the website.

This breaks our workflow quite a lot because when developers are building or adjusting slices, the content marketeers still need to be able to preview the website. Forcing content marketeers to wait everytime a developer add or edits a custom type is not ideal.

Steps to reproduce

  1. Build website with customTypes
  2. Preview works just fin
  3. Update a custom type without rebuilding the website
  4. Previews are broken until website is rebuild

What is expected?

If new properties in custom types are added, the preview should function as expected, the new values can be ignored for that specific build since there i no code using these new properties.

What is actually happening?

Prismic is hard enforcing all types to be defined in a scheme.

angeloashmore commented 1 year ago

This issue is stale and 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