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

[Bug Report] 利用unplugin-auto-import引入组件,在修改文件热更新后进行重载导致样式丢失 #8250

Closed
pudon opened this issue Jun 13, 2022 · 3 comments
Labels

Comments

@pudon
Copy link

pudon commented Jun 13, 2022

Element Plus version

2.2.5

OS/Browsers version

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Vue version

3.2.25

Reproduction Link

https://github.com/Pudon/vue3-demo

Steps to reproduce

  1. npm run dev
  2. 修改一点代码-热更新
  3. 浏览器点击重载
  4. 再点击显示消息-样式丢失

What is Expected?

ElMessage样式显示正常

What is actually happening?

ElMessage样式丢失

@pudon
Copy link
Author

pudon commented Jun 13, 2022

image

正常是有引入css

hmr update 后 浏览器重载后

image

少了自动引入css

@chenxch
Copy link
Member

chenxch commented Jun 13, 2022

Maybe this problem can be solved faster in unplugin-auto-import.

@btea
Copy link
Collaborator

btea commented Jul 13, 2022

fixed unplugin/unplugin-auto-import#213

@btea btea closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants