-
-
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
预览模式中element-ui el-table jsx写法不显示 #12957
Comments
Hello @damian-64. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Here is minimal reproduction https://github.com/satrong/vite-4.3-element-ui Works fine in development mode ( |
me too.
|
I dug this one down and found that this just happened to work. You are facing a dual package hazard.
related: #11389 Why does this work with npm + Vite 4.3?It seems there's a bug in Vite. /cc @bluwy Why does this work during dev?It seems the dep optimizer has a bug. It's mixing ESM version and CJS version. |
Yeah that has bitten me in the optimizer before. I'm not sure why it only comes out now as we had the
I don't understand this part, we do realpath the package path in the cache, and |
For example, if we had two modules A and B importing
resolving
|
Thanks for the explanation! I thought it was the module instance duplicated, but seems like you're referring to the I don't remember Vite 4.2 having this dedupe mechanism though, but likely in multiple 4.3 refactors that this surfaced up. I'd be fine to go with the shared In the future, I hope to remove the |
这个问题能够在最新的[email protected]的正式版本修复吗? 😄 |
4.4.9了( 流泪 |
指定 alias 中的 vue 可以生效
|
Checking this issue once again, it seems this is caused by plugin-vue2's code. |
Describe the bug
element-ui el-table jsx在 vite4.2.x 预览中是正常, 在vite4.3.x 开发中正常显示,在预览中不显示
Reproduction
https://github.com/satrong/vite-4.3-element-ui
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: