AWS Amplify FATAL ERROR: Reached heap limit Allocation failed
Nov 29, 2022
AWS Amplifty is our preferred solution to deploy a react-js application (nodejs).
Our latest builds failed to compile with message “FATAL ERROR: Reached heap limit Allocation failed”.
A quick fix to resolve the issue edit your amplify.yml file
in build section commands before
- yarn build
add the following line
- export NODE_OPTIONS="— max_old_space_size=16384"