You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Brave Version 1.45.127 Chromium: 107.0.5304.110 (Official Build) (x86_64)
How are you deploying your application? (if relevant)
next start
Describe the Bug
If I use the
UploaderProvider
fromw3ui/react-uploader
in my app it works fine in dev mode (npm run dev
) but the app throws errors (https://reactjs.org/docs/error-decoder.html/?invariant=130&args[]=undefined&args[]= and https://reactjs.org/docs/error-decoder.html/?invariant=423) when run in a production build with SWC minification enabled (npm run build && npm start
).Disabling SWC minification in Next 12, 13 or canary fixes the issue.
Expected Behavior
Apps using
UploaderProvider
should work the same in development and production mode, with SWC minification enabled or disabled.Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/web3-storage/w3ui-swc-minify-bug
To Reproduce
Clone https://github.com/web3-storage/w3ui-swc-minify-bug and run
npm install && npm run build && npm start
and then visit http://localhost:3000Disable SWC minification (as demonstrated on this branch https://github.com/web3-storage/w3ui-swc-minify-bug/tree/fixed) to fix this issue. The issue also does not occur when running with
npm run dev
.The text was updated successfully, but these errors were encountered: