Skip to content
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

react-uploader UploaderProvider breaks production Next.js apps #126

Closed
travis opened this issue Nov 17, 2022 · 2 comments
Closed

react-uploader UploaderProvider breaks production Next.js apps #126

travis opened this issue Nov 17, 2022 · 2 comments
Assignees

Comments

@travis
Copy link
Contributor

travis commented Nov 17, 2022

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.

@travis
Copy link
Contributor Author

travis commented Nov 17, 2022

Filed vercel/next.js#43052 so this will hopefully get fixed upstream.

@travis travis self-assigned this Jan 19, 2023
@travis
Copy link
Contributor Author

travis commented Mar 3, 2023

this was fixed upstream! test repo works now.

@travis travis closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant