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

Docusaurus for large documentation site - JavaScript heap out of memory #7410

Closed
4 of 7 tasks
fawazahmed0 opened this issue May 13, 2022 · 2 comments
Closed
4 of 7 tasks
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@fawazahmed0
Copy link

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Here is the link to build log

Similar #1782 #3132

The workaround is to use export NODE_OPTIONS="--max-old-space-size=SOME_LARGE_NUM" ,but in my case I am using github actions, which only support 14GB RAM max

Reproducible demo

No response

Steps to reproduce

Need a Large documentation site. Here is the link to my repository, which generated large documentation site during build

Expected behavior

Should build

Actual behavior

Build fails

Your environment

No response

Self-service

  • I'd be willing to fix this bug myself.
@fawazahmed0 fawazahmed0 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 13, 2022
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels May 13, 2022
@Josh-Cena
Copy link
Collaborator

Let's discuss in #4765 instead. We are aware of this issue, but without some benchmarking, this issue is unactionable, and complaining that "it doesn't work" doesn't add anything meaningful to the investigation.

@fawazahmed0
Copy link
Author

I tried esbuild-loader , but that doesn't seem to work in my use case, I guess increasing ram is the only option for me. Thanks anyways.

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: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants