You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just updated from prismic-reactjs to @prismicio/react for the Prismic documentation website. Everything works as expected in local development, including previews. When deployed, however, everything crashes with a 500 error when I run a Prismic preview (everything works as expected when not in preview mode).
I'm getting the following error:
[GET] /docs/technologies/query-the-api-dotnet
2022-01-12T15:19:02.927Z
ERROR TypeError: React.createContext is not a function
at file:///var/task/node_modules/@prismicio/react/dist/index.js:7:30
at ModuleJob.run (internal/modules/esm/module_job.js:145:37)
at async Loader.import (internal/modules/esm/loader.js:182:24) {
page: '/technologies/query-the-api-dotnet'
}
Error: Runtime exited with error: exit status 1
Runtime.ExitError
The text was updated successfully, but these errors were encountered:
@angeloashmore Is there a specific way that you know of to clean a cache on Vercel? It seemed to me that the cache is cleared automatically anytime a new deployment is launched.
Versions
Reproduction
I just updated from prismic-reactjs to @prismicio/react for the Prismic documentation website. Everything works as expected in local development, including previews. When deployed, however, everything crashes with a 500 error when I run a Prismic preview (everything works as expected when not in preview mode).
I'm getting the following error:
The text was updated successfully, but these errors were encountered: