-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
vue style not found #3101
Comments
@leafront would you create a minimal reproduction of this issue in github to share here? |
Hello @leafront. Please provide a online reproduction by codesandbox or a minimal GitHub repository. Issues labeled by |
Very urgent. Thank you for your attention. |
I think this is the same problem I'm having, the css dependency is included in the first dynamic import() that depends on that component, but not in others |
Do you have a solution? |
You can lock the vite version to 2.1.5 to solve this problem, I tested my local environment and found that this error occurs when the vite version >= 2.2.0 |
What I'm talking about is that there's a problem with the packaged code |
我知道你遇到的打包的问题,我给出的目前可行之策是将你的vite版本降到2.1.5再打包,我本地用2.2.0+以上的版本打包后,css样式并没有被js脚本所引用。 |
Resolved by #3144 |
@daiwanxing @leafront @LepkoQQ the fix was released in Vite v2.2.3, you should be able to update to it in your projects |
Thanks! |
This reverts commit 1451b78.
Describe the bug
vite build Production environment package style file missing
Reproduction
https://github.com/leafront/my-vue-app
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager:
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: