-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
swcMinify causes some problems #40601
Comments
This problem occurs when I upgrade the version to |
can someone help me 🧐 |
I can also confirm similar issue with Uncaught (in promise) TypeError: h is undefined
NextJS 16
nhw
n_U
nfq
td
td
pf
pf
pf
Ze
Ze
dispatch
n
dispatch
dispatch
saveDispatch
postMessage
Caused by: undefined
[94d85b83-ad559083d4c6fd15.js:1:408967](___chunks/94d85b83-ad559083d4c6fd15.js) |
@sushantdhiman Are you also using version 12.3.0? I have this problem after upgrading to 12.3.0 |
Should be duplicate of swc-project/swc#5846 |
me too |
You can try the latest canary https://github.com/vercel/next.js/releases/tag/v12.3.1-canary.3 and see if the problem still there. The fix of swc-project/swc#5846 has been included in v12.3.1-canary.3. |
no,it still break when i use
|
It's useful for me, the problem disappeared in version v12.3.1-canary.3, Thanks! |
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
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 16.17.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 12.3.1-canary.2
eslint-config-next: 12.3.0
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
Google Chrome 105.0.5195.102
How are you deploying your application? (if relevant)
next start
Describe the Bug
In development mode everything works fine.
Program crashed when I execute
npm run build
andnpm run start
,However when I setswcMinify
tofalse
everything works fine againcrash in production mode with
swcMinify: true
:Expected Behavior
I expect the program to behave the same on
npm run dev
andnpm run start
Link to reproduction
https://codesandbox.io/s/agitated-tree-t3jml4?file=/pages/index.tsx
To Reproduce
The above code works fine in the
development mode
,crash in production mode withswcMinify: true
but works fine withswcMinify: false
The text was updated successfully, but these errors were encountered: