-
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
_gatsbyScript.PartytownContext is undefined #36482
Comments
I am sorry I mutated the reproduction application code. Just before some hours, I deleted most of the packages and files. Then it worked perfectly. You can see the commit details here: |
We located problematic bit - there is some version mismatch happening - if everything is on latest (like in my case) everything works fine, it's when We will look to fix/handle this mismatch |
We've looked a bit into this and we decided to do no code fix for this. If you run into this and see this issue later, upgrade all your Gatsby dependency to the latest version and it should be resolved. It seems this is happening when one uses Gatsby pre 4.21 + gatsby-script above 1.5.0 or vice versa. Unfortunately we can't safely fix this issue, so if you have a version mismatch, please update your dependencies. We decided to go this route as the majority of our users isn't running into this problem. |
For anyone that runs into this, it is indeed a version mismatch gatsby@4.15.2 declares gatsby-script@^1.0.1 as peer, but 1.9.0 (latest at the time of writing) is in range gatsby-script@1.9.0 will break, causing the I solved it by pinning gatsby-script to the exact version 1.0.1 |
Preliminary Checks
Description
Using netlify with gatsby.
My
netlify.toml
file:When I run
npx netlify dev
command:The netlify server didn't run and when I checked
localhost:8000
, the screen is blank and the console shows the following errors:Reproduction Link
https://githubbox.com/SaadFarhanIdress/serverless-graphql-faunadb-todoapp/tree/418cb87c3d52e54701defc07c72894672a0623ff
Steps to Reproduce
Expected Result
The development server should have been running.
Actual Result
Please see the description.
Environment
Config Flags
No
Edit
When I run it in GitHub Codespaces, both netlify and gatsby development ran but both are showing the same errors in the console window.
The text was updated successfully, but these errors were encountered: