Skip to content

Commit

Permalink
docs: update CONTRIBUTING.md with troubleshooting step for JS OOM err…
Browse files Browse the repository at this point in the history
…or in scripts/build_frontend.sh (#9845)

Co-authored-by: Freddy Boulton <[email protected]>
  • Loading branch information
lcian and freddyaboulton authored Oct 25, 2024
1 parent 854ec6f commit 8f40bd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,5 +340,11 @@ bash scripts/build_frontend.sh
```
---

```FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory``` when running `scripts/build_frontend.sh`.

Run `scripts/build_frontend.sh` with the environment variable `NODE_OPTIONS=--max_old_space_size=2048` to increase the heap size.

---

_Could these guidelines be clearer? Feel free to open a PR to help us facilitate open-source contributions!_

0 comments on commit 8f40bd2

Please sign in to comment.