-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
vite 2.3.8 breaks CSS imports from node_modules #3945
Comments
我也遇到这个问题了,还以为 是 Element Plus的问题呢 ^_^ |
@DreierF then it indeed seems to be a Windows specific issue, because executing the same commands that you did, gives me an incorrect font and missing icons. |
I can reproduce this on Mac, i use a project with ElementUI and it's fonts stopped to work... Interesting that FontAwesome still works... Downgrading to 2.3.7 fixed |
Same issue , with @mdi/font on windows |
I was able to reproduce with vite 2.3.8. |
Describe the bug
After upgrading to vite 2.3.8, CSS imports from node_modules no longer work as before. The styles are loaded, but any fonts, icons, etc. that are referenced in the imported CSS file, silently fail to load. Downgrading to vite 2.3.7 solves the issue.
Reproduction
Here is a small repo that illustrates the problem:
https://github.com/leroytromp/vite-css-import-issue
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
Logs
No errors are are shown in the browser console or server logs around the time this bug occurred.
The text was updated successfully, but these errors were encountered: