Skip to content
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

Netlify deploy using Webpack@5 OOMs #4843

Closed
SimenB opened this issue May 25, 2021 · 2 comments · Fixed by jestjs/jest#11516
Closed

Netlify deploy using Webpack@5 OOMs #4843

SimenB opened this issue May 25, 2021 · 2 comments · Fixed by jestjs/jest#11516
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests)

Comments

@SimenB
Copy link
Contributor

SimenB commented May 25, 2021

🐛 Bug Report

After jestjs/jest#11266 the website no longer deployed successfully, see e.g. https://app.netlify.com/sites/jestjs/deploys/60acb00d26f4ce00073f7557.

After reverting in jestjs/jest@a832dc3 it deployed successfully: https://app.netlify.com/sites/jestjs/deploys/60acbc3315bb2e0008c47fba

Have you read the Contributing Guidelines on issues?

Yup

To Reproduce

Not sure, probably try to build Jest's website using beta.0?

Expected behavior

It should not OOM

Actual Behavior

The build OOMs

Your Environment

Reproducible Demo

See linked Netlify logs

@SimenB SimenB added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels May 25, 2021
@lex111
Copy link
Contributor

lex111 commented May 25, 2021

Unfortunately, this is a fairly common problem for large projects using webpack. At the moment (more as a workaround than a solution), I would suggest increasing the memory limit, something like this:

node --max_old_space_size=16000 node_modules/@docusaurus/core/bin/docusaurus build

Perhaps you want replace babel-loader with esbuild, as was done on the Docusaurus website (see #4766 for more details).

@slorber
Copy link
Collaborator

slorber commented Jun 3, 2021

Not a bug, just a memory allocation issue.

It's normal for large sites to require more nodejs memory, particularly as webpack 5 does more things than webpack 4 (like the new caching system etc)

Will be fixed in jestjs/jest#11516

@slorber slorber closed this as completed Jun 3, 2021
@Josh-Cena Josh-Cena added closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests) and removed status: needs triage This issue has not been triaged by maintainers labels Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants