Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from amplify init of front end - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #31

Open
aburkleaux-amazon opened this issue Mar 2, 2022 · 0 comments

Comments

@aburkleaux-amazon
Copy link

In the amplify init step, I am getting a "JavaScript heap out of memory" error building the application.

* `amplify init`

There are several references to this error in the Amplify project that point to different versions of nodeJS as the issue:

aws-amplify/amplify-cli#5757
aws-amplify/amplify-cli#3708

I tried setting "react-scripts --max_old_space_size=8192 build" and explicitly setting the node version with nvm use $VERSION_NODE_12. Neither of these worked.

Using an EC2 with more memory (t3.small) in the Cloud9 environment fixed the issue for me.

I'm using all the defaults for the amplify build. The amplify version in Cloud9 is:

burkleaa:~/environment/UnicornFlix (master) $ amplify --version
7.6.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant