react-uploader UploaderProvider breaks production Next.js apps
travis opened this issue · comments
If I use UploaderProvider
in a Next.js application it works fine in dev mode but breaks the app in production.
A very simple demonstration of this issue can be found in https://github.com/web3-storage/w3ui-swc-minify-bug - simply clone the repo and run npm install && npm run build && npm start
to see the error.
I've tracked this down to something in the SWC minifier - as demonstrated on the fixed
branch of the w3ui-swc-minify-bug
repo the issue goes away if you disable SWC minification:
https://github.com/web3-storage/w3ui-swc-minify-bug/tree/fixed
I don't think there's anything for us to do about this - creating this issue to track the bug I'm about to file in the Next.js repository.
Filed vercel/next.js#43052 so this will hopefully get fixed upstream.
this was fixed upstream! test repo works now.