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

Fix timeout when building gov-app on Node 18 #3

Open
aahna-ashina opened this issue Aug 2, 2022 · 2 comments
Open

Fix timeout when building gov-app on Node 18 #3

aahna-ashina opened this issue Aug 2, 2022 · 2 comments

Comments

@aahna-ashina
Copy link
Member

How to reproduce: yarn build

> Build error occurred
Error: Static page generation for /proposals is still timing out after 3 attempts. See more info here https://nextjs.org/docs/messages/static-page-generation-timeout

Example: https://github.com/nation3/gov-app/runs/7630565983?check_suite_focus=true


warn  - Restarted static page generation for /proposals because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/process because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/0 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/1 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/2 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/3 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/4 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/5 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/6 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/7 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/8 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/9 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/10 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/11 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/12 because it took more than 60 seconds
warn  - Restarted static page generation for /proposals/13 because it took more than 60 seconds
warn  - Restarted static page generation for /404 because it took more than 60 seconds
warn  - Restarted static page generation for /500 because it took more than 60 seconds
(node:2010) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
@luisivan
Copy link
Contributor

luisivan commented Aug 2, 2022

It's a weird thing with Node 18. It takes ages to build each page, and it also alerts about the Fetch API being an experimental feature (which is weird because that message doesn't show in Node 16, which is a previous version?).

@aahna-ashina
Copy link
Member Author

@luisivan Weird indeed 😆

And looks like they narrowed down the bug to a swrlit dependency: vercel/next.js#35602 (comment)

We could try upgrading "next": "12.2.0" to a later version and see if that helps?

And if not, here are some other possible fixes: https://nextjs.org/docs/messages/static-page-generation-timeout

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

2 participants