Skip to content

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

@brownieboy

Description

@brownieboy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions