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

Demo won't build: "JavaScript heap out of memory" #522

Open
brownieboy opened this issue Feb 12, 2025 · 0 comments
Open

Demo won't build: "JavaScript heap out of memory" #522

brownieboy opened this issue Feb 12, 2025 · 0 comments

Comments

@brownieboy
Copy link

brownieboy commented Feb 12, 2025

Triying to run the demo. I followed the instructions to do this. Did npm i at the root and /demo folder levels, and ran the two npm link commands in both folders too. Also ran npm build at the root to build the package (not in the instructions, but required).

When I run npm start I get:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I think this is combination of a very old version of react-scripts (3.x) running on modern versions of Node. I managed to update to react-scripts version 5.x, and I got it running, but with a lot of effort. This included installing a Create React App rewiring package, so I could override some react-scripts/webpack config.

I think this is a dead end though: CRA and react-scripts are pretty much end of life at this point.

So I had a look at converting the /demo folder over to Vite, and managed to get that working. It was some effort too, but Vite is a build tool with a future, at least.

I can submit a PR if there's any interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant