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

[@vitejs/plugin-vue] CSS has no corresponding SFC entry in the cache #1812

Closed
3 tasks done
LeBenLeBen opened this issue Jan 30, 2021 · 0 comments
Closed
3 tasks done

Comments

@LeBenLeBen
Copy link

  • 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
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant