vite-plugin-vue2 icon indicating copy to clipboard operation
vite-plugin-vue2 copied to clipboard

has no corresponding SFC entry in the cache after checkout branch

Open PengBoUESTC opened this issue 2 years ago • 2 comments

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 avatar Aug 10 '22 06:08 PengBoUESTC

vite version 2.9.9

PengBoUESTC avatar Aug 10 '22 06:08 PengBoUESTC

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

PengBoUESTC avatar Aug 10 '22 07:08 PengBoUESTC