3

I have a react project with codebuild service to deploy automatically to my S3 bucket after adding some libs I surprised with failed on build

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 
 1: node::Abort() [node] 

any hint why this happen

Mina Fawzy
  • 20,852
  • 17
  • 133
  • 156

2 Answers2

1

this issue fixed by change the compute type to a larger one Thanks for shariqmaws

Mina Fawzy
  • 20,852
  • 17
  • 133
  • 156
0

Resolved the issue by increasing the heap before building the project

export NODE_OPTIONS="--max-old-space-size=6144" # increased to 6Gb

Reference: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in Ionic 3

Shubham
  • 1,740
  • 1
  • 15
  • 17