[@vitejs/plugin-vue] CSS has no corresponding SFC entry in the cache #1812
Closed
Description
- Read the docs.
- Use Vite >=2.0. (1.x is no longer supported)
- If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
I’ve seen #1542, #1308 and #1561 but this is still reproducible with latest vite/vue-plugin for me.
[vite] Internal server error: /Users/leben/Desktop/my-vue-app/node_modules/@vueform/multiselect/themes/default.css has no corresponding SFC entry in the cache. This is a @vitejs/plugin-vue internal error, please open an issue.
Plugin: vite:vue
File: /Users/leben/Desktop/my-vue-app/node_modules/@vueform/multiselect/themes/default.css?v=1214311d&vue&type=style&index=1&src&lang.css
at getDescriptor (/Users/leben/Desktop/my-vue-app/node_modules/@vitejs/plugin-vue/dist/index.js:4410:11)
at TransformContext.transform (/Users/leben/Desktop/my-vue-app/node_modules/@vitejs/plugin-vue/dist/index.js:5006:28)
at Object.transform (/Users/leben/Desktop/my-vue-app/node_modules/vite/dist/node/chunks/dep-fed852ba.js:53546:53)
at async transformRequest (/Users/leben/Desktop/my-vue-app/node_modules/vite/dist/node/chunks/dep-fed852ba.js:60589:29)
at async /Users/leben/Desktop/my-vue-app/node_modules/vite/dist/node/chunks/dep-fed852ba.js:60678:32 (x2)
Reproduction
https://github.com/LeBenLeBen/vite-css
git clone https://github.com/LeBenLeBen/vite-css.git
cd vite-css
npm i
npm run dev
The faulty import is at the end of src/App.vue
System Info
vite
version: 2.0.0-beta.59@vitejs/plugin-vue
version: 1.1.3- Operating System: macOS 10.15.7
- Node version: 12.14.0
- Package manager (npm/yarn/pnpm) and version: npm