menu
techminis

A naukri.com initiative

google-web-stories
source image

Dev

1w

read

191

img
dot

Image Credit: Dev

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory on Digital OceanDroplet

  • A memory Heap error occurred on DigitalOcean droplet while trying to build a React app during deployment
  • The error is due to the Node.js installation having restricted heap memory, leading to an exceeded memory restriction during the build process
  • To resolve the error, the heap memory can be adjusted by setting the NODE_OPTIONS to a higher value like '--max-old-space-size=4096'
  • After adjusting the heap memory, running 'yarn build' should work without any errors

Read Full Article

like

11 Likes

For uninterrupted reading, download the app