-
Notifications
You must be signed in to change notification settings - Fork 113
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
MonoRepo NextJS SSR build hangs on Generating static pages (0/4)
#3469
Comments
Same issue here |
Hi, Thanks for reporting the issue. Can you please remove Feel free to reopen if the issue persists Thanks |
|
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. |
Before opening, please confirm:
App Id
d3hlmgrziazvps
AWS Region
us-west-2
Amplify Hosting feature
Frontend builds, Monorepo, SSR
Describe the bug
Following the steps here: https://medium.com/@writetochrispalmer/how-to-deploy-a-monorepo-next-js-13-app-to-aws-amplify-1700f0a17653 I created a similar monorepo: https://github.com/alycda/nextjs-amplify and connected to AWS Amplify.
Frontend Build hangs: (even when increasing timeout to max length)
Expected behavior
Build should complete all steps as seen in local environment: (run from GitHub Codespaces in VS Code)
Reproduction steps
Build Settings
Starting phase: preBuild
Executing command: node --version
v16.16.0
Executing command: export NODE_OPTIONS=--max-old-space-size=8192
Executing command: npm install --location=global yarn
2023-05-09T05:23:04.963Z [INFO]: added 1 package, and audited 2 packages in 390ms
2023-05-09T05:23:04.965Z [INFO]: found 0 vulnerabilities
2023-05-09T05:23:04.969Z [INFO]: # Executing command: cd ../../
2023-05-09T05:23:04.969Z [INFO]: # Executing command: yarn install --frozen-lockfile --production
2023-05-09T05:23:05.224Z [INFO]: yarn install v1.22.19
2023-05-09T05:23:05.303Z [INFO]: [1/4] Resolving packages...
2023-05-09T05:23:05.499Z [INFO]: [2/4] Fetching packages...
2023-05-09T05:23:20.847Z [INFO]: [3/4] Linking dependencies...
2023-05-09T05:23:24.120Z [INFO]: [4/4] Building fresh packages...
2023-05-09T05:23:32.582Z [INFO]: Done in 27.36s.
2023-05-09T05:23:32.601Z [INFO]: # Executing command: cd packages/client
2023-05-09T05:23:32.601Z [INFO]: # Executing command: yarn install --frozen-lockfile
2023-05-09T05:23:32.748Z [INFO]: yarn install v1.22.19
2023-05-09T05:23:32.839Z [INFO]: [1/4] Resolving packages...
2023-05-09T05:23:33.047Z [INFO]: [2/4] Fetching packages...
2023-05-09T05:23:33.300Z [INFO]: [3/4] Linking dependencies...
2023-05-09T05:23:34.755Z [INFO]: [4/4] Building fresh packages...
2023-05-09T05:23:34.773Z [INFO]: Done in 2.03s.
2023-05-09T05:23:34.808Z [INFO]: # Executing command: yarn build
2023-05-09T05:23:34.952Z [INFO]: yarn run v1.22.19
2023-05-09T05:23:34.977Z [INFO]: $ next build --debug
2023-05-09T05:23:35.445Z [INFO]: warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
2023-05-09T05:23:35.461Z [INFO]: Attention: Next.js now collects completely anonymous telemetry regarding usage.
2023-05-09T05:23:35.461Z [INFO]: This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
2023-05-09T05:23:35.549Z [INFO]: info - Creating an optimized production build...
2023-05-09T05:23:43.230Z [INFO]: info - Compiled successfully
2023-05-09T05:23:43.232Z [INFO]: info - Linting and checking validity of types...
2023-05-09T05:23:46.031Z [INFO]: info - Collecting page data...
2023-05-09T05:23:57.968Z [INFO]: info - Generating static pages (0/4)
The text was updated successfully, but these errors were encountered: