-
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
Gatsby@2.20.29 Build failure (JavaScript heap out of memory) #23402
Comments
Are you able to share your site so we can try to reproduce? ---edit |
While not exactly OOM - this issue #23221 tracks some regressions related to webpack step that might have similar cause. Unfortunately the tracing output won't help much here, because most likely something weird is happening inside webpack compilation. We really need to be able to reproduce this to determine the problem (in case this issue has different root cause than the issue I linked) - is there chance of sharing your site privately? |
@pieh I'll see if I can get permission to do so. For the time being, let me know what files / areas you're interested that I can share with you until I get approval. |
It's hard to pinpoint files any specific files. One thing that you could try is to try is to:
This would at least might tell us if this issue is connected to #23221 . That issue is already being actively worked on (we have reproduction there) |
Can you try installing |
|
Description
When running
gatsby build
, the build fails with the following error:This issue began occurring after updating gatsby from
2.18.17
to2.20.29
.Steps to reproduce
Run
gatsby build --open-tracing-config-file node_modules/gatsby/dist/utils/tracer/jaeger-local.js
Unfortunately I am unable to share the repo, but I can share the jaegar build trace generated from the instructions here.
Here's a screenshot of the last 3 rows in the trace before it crashes:
If you notice the second to last 2 are hung up on the
onCreateWebpackConfig
hook ingatsby-plugin-netlify-cms
.At first I thought it was because my gatsby-plugin-netlify-cms was not properly updated because the issue seems to have been resolved, but it's now resurfaced after upgrading gatsby.
Here's the relevant package versions my project is running:
and my
gatsby-config.js
with some custom webpack configurations:Expected result
The expected result is the build should successfully complete.
Actual result
The build fails before completion.
Environment
Run
gatsby info --clipboard
in your project directory and paste the output here.The text was updated successfully, but these errors were encountered: