getting deployment error for my react project. I've described my error below!

Posted September 6, 2021 208 views

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap
12: 0x140dc19 [node]
npm ERR! errno 1
npm ERR! softinnhotelresort@0.1.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the softinnhotelresort@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hey there!

From the logs you provided it looks like your react project is running out of resources during build. Are you building this in App Platform or on a droplet? There are resource limits during build in App Platform that can be hit if you are using a lot of disk space. If this is a droplet I’d suggest reviewing the resource usage during build and scale up to a bigger droplet if needed.