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
dropzone.js can't be loaded if I use swc #43027
Comments
balazsorban44
added
kind: bug
and removed
bug
Issue was opened via the bug report template.
labels
Nov 17, 2022
The output size difference was a regression, it has been fixed in #42790. But there is still an issue with the minifer regarding the good in the reproduction, so we will look into it. Thanks for reporting. |
ijjk
pushed a commit
that referenced
this issue
Nov 20, 2022
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">
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
I use dropzone.js for my nextjs project. I can use it in dev mode, but can't use it for ssg mode.
If I export for ssg, I get the error:
extend is not defined
.Then I try to use
dynamic import
withssr: false
, nothing has changed, it's returns same error.But, If I disable
swcMinify
, it can be used.P.S. I disable it, but output file size is smaller. why?
Expected Behavior
dropzone.js can be use for ssg with swcMinify.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/0ldm0s/dropzone-demo
To Reproduce
set
swcMinify: true
innext.config.js
The text was updated successfully, but these errors were encountered: