Report this

What is the reason for this report?

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

Posted on September 6, 2021

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap 12: 0x140dc19 [node] npm ERR! code ELIFECYCLE 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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

Nate

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.