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

CRA build issue #3481

Closed
4 tasks done
kinitkit opened this issue May 12, 2023 · 5 comments
Closed
4 tasks done

CRA build issue #3481

kinitkit opened this issue May 12, 2023 · 5 comments
Labels
archived This issue has been locked. frontend-builds question Further information is requested

Comments

@kinitkit
Copy link

Before opening, please confirm:

App Id

d2pjia7yruoojd

AWS Region

us-west-2

Amplify Hosting feature

Frontend builds

Question

We are currently experiencing an issue related to building our Create-React-App (CRA) projects.

We have two applications with the same branch configurations and environmental variables. The applications are ostensibly identical, yet we are encountering a problem where one application builds successfully while the other consistently fails.

We would appreciate your prompt assistance in resolving this matter as it is affecting our development and deployment process. Please let us know if you need any additional information to assist with troubleshooting.

Thank you in advance for your support and assistance.

image

@kinitkit kinitkit added the question Further information is requested label May 12, 2023
@ghost ghost self-assigned this May 12, 2023
@ghost
Copy link

ghost commented May 16, 2023

Hi @kinitkit 👋🏽 thanks for raising this question. I see you have this set in your build script:

export NODE_OPTIONS=--max-old-space-size=8192

This will not work because 8192 exceeds the 7GB memory that the host contains so it will will be ignored. Instead, try setting this:

export NODE_OPTIONS=--max-old-space-size=5632

Please let me know if this solves the issue for you.

@ghost ghost added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating labels May 16, 2023
@kinitkit
Copy link
Author

Hi @hloriii!

I updated it to 5632 but still seeing the same error. Any other options that we can do?

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label May 17, 2023
@ghost
Copy link

ghost commented May 18, 2023

Hi @kinitkit thanks for trying that out. The current configuration for your app may require more RAM than Amplify currently offers: the build environment is an isolated host with 4 vCPU and 7GB memory. We plan to offer larger build environments in the near future however this is a hard limit for the service today.

We do apologize for this inconvenience. Please feel free to open a new issue if you have other questions regarding Amplify Hosting. Thank you!

@ghost ghost closed this as completed May 18, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the archived This issue has been locked. label May 18, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 18, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. frontend-builds question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant