-
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
Cannot read property 'split' of undefined #30780
Comments
I am migrating my codebase from gatsby V2 to V3 () and like others, I am also receiving the same error. Also, I can confirm that I am not using When I run
Below is my
OS: |
Hello, Below, my package.json |
I tried reverting the packages back, deleting package-lock.json and node_modules. Then I run npm install and gatsby build the error still exist. |
Can one of you share a reproduction I can run locally to see what's happening? E.g. @ramojej could you share your WP URL so I can run your site? |
You can also try adding this to `./node_m const transformWebpackError = (stage, webpackError) => {
+ console.log(webpackError)
var _castedWebpackError$e, |
Thanks @ramojej for giving me access. This is the stack trace:
Looking at react-dev-utils issues, it looks like we hit this bug: facebook/create-react-app#9880 |
I am completely unable to proceed further without this fix. Actively looking for this PR by @KyleAMathews to be merged in the |
Having the same problem when upgrading from V2 to V3. I fixed the breaking changes, but this one has me stumped. Tried a few different versions of Error
Build log
My package.json
|
To unstick people until the fix gets published, I published a canary version with the fix. Install |
@KyleAMathews Works like a charm! 🙏 |
@KyleAMathews Thanks!!! |
@KyleAMathews Thanks! I am also getting this issue on gatsby v4.21.1 Here is the environment
Here are the error logs
|
Description
Hey, everyone. So I updated these packages from
to:
Now I'm having this error, that I don't know where or how to trace, when I run gatsby build. The same error can be seen in Netlify. There are no errors or warnings in development mode though.
I tried reverting back all the updates I've done, but the error still exists.
Two other people are having the same problem in the Discord channel.
Steps to reproduce
I just updated those packages. Here's the repo https://github.com/ramojej/dd-source-technologies
Expected result
Gatsby build successfully
Actual result
failed Building production JavaScript and CSS bundles
Environment
The text was updated successfully, but these errors were encountered: