How to fix “FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory” error

That problem is related with large files in your project.

I’m using create-react-app, and I got that error, after doing some search, it seems one solution is this.

Put in .env file:

GENERATE_SOURCEMAP=false

Leave a Comment