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

Amplify Gen 2 React Docs Build Container Out of Memory #8151

Open
naszad opened this issue Dec 6, 2024 · 0 comments
Open

Amplify Gen 2 React Docs Build Container Out of Memory #8151

naszad opened this issue Dec 6, 2024 · 0 comments

Comments

@naszad
Copy link

naszad commented Dec 6, 2024

Describe the bug
I'm following the Amplify Gen 2 docs for deploying a Vite + React application. Once I re-deploy the app at the end of Quickstart step 6 (adding login UI), the build fails with the message "Build container ran out of memory" after calling "npm run build" and transforming 1748 modules. The initial build/deployment when following the docs succeeds, but I can't seem to pin down why the second fails.

To Reproduce
Follow the Quickstart portion of the React Documentation until you deploy the app again at the end of step 6.

Expected behavior
Below is the end to the initial build log, I would expect the second build to display something similar upon success:

2024-12-05T23:31:15.549Z [INFO]: # Executing command: npm run build
2024-12-05T23:31:15.816Z [INFO]: > [email protected] build
                                 > tsc && vite build
2024-12-05T23:31:21.218Z [INFO]: vite v5.4.10 building for production...
2024-12-05T23:31:21.275Z [INFO]: transforming...
2024-12-05T23:31:23.393Z [INFO]: ✓ 788 modules transformed.
2024-12-05T23:31:23.636Z [INFO]: rendering chunks...
2024-12-05T23:31:23.644Z [INFO]: computing gzip size...
2024-12-05T23:31:23.658Z [INFO]: dist/index.html                   0.46 kB │ gzip:  0.30 kB
2024-12-05T23:31:23.658Z [INFO]: dist/assets/index-BGFuHSfN.css    0.90 kB │ gzip:  0.49 kB
                                 dist/assets/index-CwVTmeDt.js   320.90 kB │ gzip: 99.74 kB
2024-12-05T23:31:23.658Z [INFO]: ✓ built in 2.42s
2024-12-05T23:31:23.682Z [INFO]: # Completed phase: build
                                 ## Completed Frontend Build
2024-12-05T23:31:23.706Z [INFO]: ## Build completed successfully

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Microsoft Edge
  • Windows 11

Additional context
Below are the log files for each of the two builds:
BUILD1.txt
BUILD2.txt

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