We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal reproducible example: https://codesandbox.io/p/devbox/temporal-polyfill-nextjs-bug-7n38kr?file=%2Fapp%2Fpage.tsx
Running npm run dev works as expected, npm run build-start will throw an error when clicking the button.
npm run dev
npm run build-start
The text was updated successfully, but these errors were encountered:
Thanks for the report @cbodin. After some frustrating debugging, I've found this is a minification bug in Next's SWC.
If you set swcMinify: false in your next.config.js, you'll see the problem goes away.
swcMinify: false
I need to further reduce where the problem is happening. In temporal-polyfill's sourcecode, somewhere near the array spread in formatPlainTimeIso.
formatPlainTimeIso
Sorry, something went wrong.
^^See above issue in swc
Very soon after I reported this bug to SWC, they fixed it.
Also, I created an easy workaround for older versions of SWC/Next.js and released it in v0.2.4
No branches or pull requests
Minimal reproducible example:
https://codesandbox.io/p/devbox/temporal-polyfill-nextjs-bug-7n38kr?file=%2Fapp%2Fpage.tsx
Running
npm run dev
works as expected,npm run build-start
will throw an error when clicking the button.The text was updated successfully, but these errors were encountered: