underfin / vite-plugin-vue2

Vue2 plugin for Vite
620 stars 83 forks source link

has no corresponding SFC entry in the cache after checkout branch #206

Open PengBoUESTC opened 2 years ago

PengBoUESTC commented 2 years ago

version 2.0.1

branch a has component A, and branch b doesn't have component A, when i work on branch b, and then checkout to a, and then checkout to a. this error show .

ERROR 下午2:11:38 [vite] Internal server error: /src/views/menu/components/A.vue has no corresponding SFC entry in the cache. This is a vite-plugin-vue2 internal error, please open an issue.

PengBoUESTC commented 2 years ago

vite version 2.9.9

PengBoUESTC commented 2 years ago

when I delete one component used by another component can trigger this error too. it seems like that delete file for vite is a js-update event, and vite will try to get this file but get 404, which trigger plugin load api will trigger crash