-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
namespace import would be transformed to void 0 #15553
Comments
Start a new pull request in StackBlitz Codeflow. |
The repro isn't working correctly for me, but this seems similar to #15542 |
This case is default in namespace import,moment be transformed to |
I find the answer, config add this option |
It seems to be related to the interop of Explanation: |
I have similar problem with moment library. I import the moment library like this
I got an error in start dev server and build production. It raised an error: I tried your solution and it works now. FYI @XiSenao |
Thank you for your feedback! This is because the esm module of |
Thanks for your explanation. But with the same code, I ran with webpack (from CRA) and it worked normally, so I think that there may be a problem from vite transformation. |
Because |
I will temporarily close this issue. The esm module corresponding to the |
Describe the bug
My project need antd v3,but console report this error when my vite devserve runs in development. The antd source code path is node_modules/antd/es/local-provider/index.js. The transformed code is 'void 0'Reproduction
https://stackblitz.com/edit/vitejs-vite-jdrder
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: