-
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
Plugin using loadPageDataSync breaks dev environment in projects using it #36675
Comments
I'm happy to contribute a PR for this. Can someone give me a head start and tell me how to tackle this? |
It seems like gatsby/packages/gatsby/cache-dir/develop-static-entry.js Lines 85 to 93 in c073bbe
|
I'm still happy to contribute a PR for this. |
Hi @openscript, We have implemented a new feature in Gatsby 5.5 that allows setting |
Preliminary Checks
Description
I've migrated a plugin I develop gatsby-plugin-i18n-l10n from React Helmet to the new Gatsby Head API.
Unfortunately there seems to be a problem with the dev environment (
gatsby develop
) andloadPageDataSync
. When I start the project using the plugin mentioned before, which utilizesloadPageDataSync
, with a clean cache the following error appears:The project can be successfully built with
gatsby build
and with this a cache. When I rungatsby develop
aftergatsby build
the following error happens:Reproduction Link
https://github.com/openscript-ch/gatsby-starter-dogmatism (uses a fixed version of the gatsby-plugin-i18n-l10n)
User this for reproduction:
https://github.com/openscript-ch/gatsby-starter-dogmatism/tree/demo/loadPageDataSync-problem
Steps to Reproduce
yarn start
Expected Result
The project is successfully built in the development environment, like it is for production.
Actual Result
The development environment is unusable.
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: