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

[vite] Internal server error: ENOENT: no such file or directory

Open PengBoUESTC opened this issue 2 years ago • 0 comments

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 () at processTicksAndRejections (internal/process/task_queues.js:95:5) at async loadAndTransform (xxx/node_modules/vite/dist/node/chunks/dep-665b0112.js:37231:24)

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

PengBoUESTC avatar Sep 16 '22 02:09 PengBoUESTC