Question

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

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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