-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Next.js 13 stuck at Creating an optimized production build...
when building with swcMinify
#42171
Comments
Thank you for creating a repro! |
This should be fixed by swc-project/swc#6300 (Done, waiting for review) |
**Related issue:** - vercel/next.js#42171.
This PR updates swc crates to swc-project/swc@5784ae2 Applies - swc-project/swc#6300 Closes #42171. - swc-project/swc#6293 - swc-project/swc#6272 Closes #41992.
@tianenpang Hey Buddy, how to solve this problem, I use the latest nextjs version and still encounter this problem? |
Hi @0x3Anthony what version of Next.js are you using and which step is the build stuck at? This issue has been fixed and I couldn't reproduce it using the latest version Upgrade deps: # pnpm
pnpm up -L -i
# yarn
yarn upgrade-interactive --latest My env:
|
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 107.0.5304.88
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
Running
next build
will freeze atCreating an optimized production build...
but will build successfully after disable the SWC Minifier innext.config.js
.Similar with issue #37825 but, the build will always be stuck whether the development server is running or not.
Refer to nextui-org/nextui#848
Expected Behavior
Build successfully when using SWC Minifier.
Link to reproduction
https://codesandbox.io/s/quizzical-tess-nnw9js
To Reproduce
CodeSandbox
yarn build
Locally
pnpm install && pnpm build
How to export the project from the CodeSandbox to local?
The text was updated successfully, but these errors were encountered: