Error: [plugin: vite:dep-scan] 这是什么问题呀?

vite2,vue3
好好的程序,然后重新运行就报这个错误。
error: [plugin: vite:dep-scan]

error when starting dev server:
Error: Build failed with 1 error:
node_modules/vite/dist/node/chunks/dep-0351185a.js:37334:43: error: [plugin: vite:dep-scan] ENOENT: no such file or directory, open 'D:\git2\vue-gitee\nfPress\nf-press-edit-old\lib\main.js\static\js2\index-b0afcac7.js'
    at failureErrorWithLog (D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:1493:15)
    at D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:1151:28
    at runOnEndCallbacks (D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:941:63)
    at buildResponseToResult (D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:1149:7)
    at D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:1258:14
    at D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:629:9
    at handleIncomingPacket (D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:726:9)
    at Socket.readFromStdout (D:\git2\vue-gitee\nfPress\nf-press-edit-old\node_modules\esbuild\lib\main.js:596:7)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
error Command failed with exit code 1.

重新建立项目,然后一点一点安装插件,把代码考过了,又不报错了。
然后几天后,又出这样的错误。

试试清空node_modules再重新安装呢

都试过了。建立新项目,把代码考过了,就会好,也没发现代码哪里有不同。
node_modules 都删除好几遍了。

想问问您解决了吗?我也碰到这个问题了

把打包生成的文件夹(比如dist、lib)删掉就好了。
注意:不是代码文件,是打包后的文件。
我也不知道原因,反正,删了就好了。