-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Build freezes on Creating an optimized production build ... #11716
Comments
It's practically impossible to debug this without a complete reproduction. Please provide a reproduction 🙏 |
@timneutkens Sorry about that. Let me know if you need anything |
I believe I'm experiencing the same issue on this branch, but only if i upgrade next 9.3.0 to 9.3.4: (Should be reproducible with a simple upgrade + |
Hi @intelcoder, it looks like you are placing your server.js file in your pages folder which is causing the build to stall. We are investigating how to catch this and provide a better error although only pages should be placed in your pages folder |
@Timer I was having what felt like a very similar issue and posted instructions to replicate above. Do you think this is a separate issue? Should I be opening a new one or asking for help elsewhere? |
Yeah you can open up a new issue. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
I have tried deleting .next, yarn.lock, node_modules and using latest version of nextjs.
Build freezes on Creating an optimized production build ...
while it stuck with that message. It creates .next directory.
And routes-manifest.json
{"version":1,"pages404":true,"basePath":"","redirects":[],"rewrites":[],"headers":[],"dynamicRoutes":[]}
I am guessing build script does not feature out routes.
To Reproduce
Dev mode works fine.
I think it might happening because of my setup. I am using custom server.js due to dynamic url.
server.js
.babelrc
Expected behavior
I expected build process works like charm.
A clear and concise description of what you expected to happen.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: