vite-plugin-vue2
vite-plugin-vue2 copied to clipboard
[vite] Internal server error: ENOENT: no such file or directory
ERROR 上午10:28:40 [vite] Internal server error: ENOENT: no such file or directory, open '/xxx.vue' 10:28:40
at Object.openSync (fs.js:498:3)
at Object.readFileSync (fs.js:394:35)
at getDescriptor (xxx/node_modules/@vitejs/plugin-vue2/dist/index.mjs:2225:66)
at Context.load (xxx/node_modules/@vitejs/plugin-vue2/dist/index.mjs:3210:28)
at Object.load (xxx/node_modules/vite/dist/node/chunks/dep-665b0112.js:41004:46)
at runMicrotasks (
branch A has the component com.vue
;
branch B doesn't have the component com.vue
check the branch from A to B will trigger this crash ;
reason:
getDescriptor
will try to readFileSync
the com.vue
, for vite server is 404, for readFileSync
is a error