SWC minify feedback #30237
Replies: 157 comments 440 replies
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Got this when running
|
Beta Was this translation helpful? Give feedback.
-
Just upgraded our project to This is probably telling of a problem somewhere in our code more so than an issue with
That said, the source Rust that i've found in
Otherwise great job with next 12, it looks awesome. |
Beta Was this translation helpful? Give feedback.
-
Hi there! Good job with Next.js 12! It looks great. I've tried out the The produced outcome and where an error is thrown (in the browser, not when running next build!):
as you can see, it tries to assign a variable to a The code comes from this package (which has 150k downloads a week) right here: https://github.com/JustFly1984/react-google-maps-api/blob/7e807a6b9115766609c667bef783eb01f706f4c7/packages/react-google-maps-api/src/LoadScript.tsx#L106-L126 I hope this is the right thread to discuss this issue. |
Beta Was this translation helpful? Give feedback.
-
Similar to the above. When opting in to But can confirm that swcMinify is super fast! And SWC in dev mode is absolutely blazin'! Great job |
Beta Was this translation helpful? Give feedback.
-
I've come across an issue where Emotion's |
Beta Was this translation helpful? Give feedback.
-
Hi, i've got an error using |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm getting an error with I've created a minimal repro repo here https://github.com/gpng/next12-deckgl This is the deployment using Without On another site using deck.gl, I ran into a different set of errors I can't provide a repro repo here as it is closed source, and the minimal repro I attempted results in the error above. Using If working properly, you should be able to see arcs connecting each circle on the map |
Beta Was this translation helpful? Give feedback.
-
I'm seeing an issue where a node dep is being transpiled incorrectly. Build works fine, but in browser I get this error:
The code from the node_module looks something like this:
And in the transpilation, part if it ends up looking like this:
Notice the very last item, it's just after the last |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
INFO: When Tried to make as precise and complete repro example, in respect to Tim and his team. You guys are awesome! Created issue on "ToastUI/Editor" repo with link to this comment: nhn/tui.editor#1993 ERROR
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
When used without "swcMInify: true", all works. REPRODUCTION
ERROR (BROWSER CONSOLE)
EXPLANATION WHAT IS THE PROBLEM |
Beta Was this translation helpful? Give feedback.
-
I can confirm this issue from react-tooltip Turning off swcMinify in next config fix my issue. Some versions for those who want to try reproduce the issue |
Beta Was this translation helpful? Give feedback.
-
I'm running into a minification error with v. 13.4.3 and 13.4.4-canary.3 of next.js |
Beta Was this translation helpful? Give feedback.
-
found an issue with next@12.3.4 and handsontable@v12. fixed in next@13 |
Beta Was this translation helpful? Give feedback.
-
Hello, https://github.com/avitorio/swcminify-debug Any help is appreciated. Hopefully this helps fix this bug. Let me know if you need any more clarification. |
Beta Was this translation helpful? Give feedback.
-
Without any steps to replicate, we changed our next js project to use Next 12 We are using direct uploads to aws s3, and for whatever reason we started getting a mismatch on the md5 sum that the library generated vs what amazon expected, after ruling out all the dependencies we finally rolled back this change and it all is resolved! |
Beta Was this translation helpful? Give feedback.
-
I am using a library called Plotly to render WebGL plots. I noticed that as of Next.js 13.5.4, Plotly now displays an error saying WebGL is not supported. My browser absolutely supports WebGL (Chrome on MacOS). Switching back to Next.js 13.5.3 or setting Production build behavior in Next 13.5.3 or setting Production build behavior in Next 13.5.4+ when setting Minimal reproduction |
Beta Was this translation helpful? Give feedback.
-
You can set parameters to see if it fixes the issue? |
Beta Was this translation helpful? Give feedback.
-
people using nextJs having problems with taquito and beacon package. It’s mainly because the compiler swc has a minify option that breaks a handful taquito functions (also other libraries). People have bypassed it by disabling minify on their server as temporary fix. But when can we expect a real fix? |
Beta Was this translation helpful? Give feedback.
-
Is anyone using SWC for nextJS @ 14.0.4 with JoyRide? What version of JoyRide? I get a ton of errors with SWC enabled and "react-joyride": "2.5.5", |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
SWC breaks when importing ESM workers:
Setting
fixes the issue. |
Beta Was this translation helpful? Give feedback.
-
Can someone help me out? github stackoverflow? |
Beta Was this translation helpful? Give feedback.
-
I ran into the error Agora RTM implementation:
Setting |
Beta Was this translation helpful? Give feedback.
-
@kdy1 On local it was working fine but causing the above error in production environment. Setting swcMinify to false, fixed the issue. I believe this is the issue :
But But i am not sure if changing that is a good idea, since I would have to do that in production. Can it cause any complications? |
Beta Was this translation helpful? Give feedback.
-
have the same issue, and we decided to remove Joyride because we do not want to turn off SWC. |
Beta Was this translation helpful? Give feedback.
-
This is a feedback thread for when your application enabled minification through SWC. The main goal of this thread is to collect potential issues people are running into with minified output.
Beta Was this translation helpful? Give feedback.
All reactions