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"

--

--

developer and weirdo / current: Tychetech / MAD TV / WARR

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store