-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
13.0.3+13.0.4 production builds cause some external libraries to misbehave #42852
Comments
I'm unable to test since 13.0.4-canary.0 has not been published yet and attempts to install using a github URL fails with This isn't the first time - and won't be the last - that SWC minification causes discrepancies between dev and prod. Why not enable minification in dev? I'd rather it took an extra few ms for a hot reload in dev than find out the app is completely broken in staging/production. Could this at least be made an opt-in option? |
Hi there, I have the same problem with a third party package that makes a callback back to the next backend (redirect url from a ssoLib package). The link is resolved wrong and so it will not be redirected correctly. Like @mutewinter mentioned |
Issue seems to affect |
We published |
Just to confirm, still an issue in |
Same issue with noVNC |
This also breaks luxon. |
This PR updates swc crates to swc-project/swc@a4ed624 --- - Closes #42978 - Closes #42801 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202788043-4ba0c3a4-b4c5-43e7-8eb3-42b8341e5d5f.png"> - Closes #43027 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202788522-e4884f91-c83c-45e8-983a-f210144effef.png"> - Closes #43042 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202788866-2c319588-5a01-4628-95cc-47bb51e19153.png"> - Closes #43060 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202789993-2bf3af55-9752-4aa8-bcc2-98f08ecd47b7.png"> - Closes #42852 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202804509-88bb3d55-182d-457d-b59e-d12b30c52100.png">
@kdy1 @ijjk The |
@karlhorky Yes, but it's a different issue |
Ok, is this planned on being fixed in Next.js / SWC too? Maybe this issue should be reopened to track this? |
I made swc-project/swc#6504 instead |
Great, thanks! Subscribed over there. Maybe once it's fixed, you can also mention over in that other issue which Next.js release it will be published in (or here, also an option). |
I'll update next.js once I fix all easily fixable minifier issues and once again when I fix others too. |
From my perspective I can confirm the issue is fixed. The client sso library package works without any issues and swcMinify is on. Thanks! 🚀 |
New PR in Next.js to update to fixed SWC version: |
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)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Production builds of next 13.0.3 cause luxon to break - I suspect the impact is more widespread than just this library hence reporting here.
Development builds work fine.
The specific issue I'm seeing is that
DateTime.now().toISO()
should return an ISO date-time string (e.g2022-11-13T00:00:00+1:00
). In 13.0.3 I just receive the GMT offset part (e.g.+1:00
).Versions <= 13.0.2 are fine; canary is broken.
Expected Behavior
Production builds should not break applications.
Production builds should not differ in behavior to development builds.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://stackblitz.com/edit/vercel-next-js-ph9din
To Reproduce
See reproduction for example code.
Create a build (
next build
) and start the server (next start
) and see that only the timezone offset is displayed.The text was updated successfully, but these errors were encountered: