aws-amplify / aws-amplify/docs

Amplify Gen 2 React Docs Build Container Out of Memory

Open
#8,151 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

Description

**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](https://docs.amplify.aws/react/start/quickstart/) 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]: > amplify-vite-react-template@0.0.0 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](https://github.com/user-attachments/files/18031447/BUILD1.txt)
[BUILD2.txt](https://github.com/user-attachments/files/18031449/BUILD2.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.