AWS Amplify FATAL ERROR: Reached heap limit Allocation failed

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"

--

--

Dimitris Moutsatsos
Dimitris Moutsatsos

Written by Dimitris Moutsatsos

developer and weirdo / current: FinTech Insights / Tychetech / Resitech

No responses yet