You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error when starting dev server:
Error: ENOENT: no such file or directory, open '/NAS/main/projects/simplemc/webdist/node_modules/svelte/transition/index.mjs'
at Object.openSync (node:fs:582:3)
at Object.readFileSync (node:fs:450:35)
at optimizeDeps (M:\projects\simplemc\webdist\node_modules\vite\dist\node\chunks\dep-1be34a63.js:71583:42)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOptimize (M:\projects\simplemc\webdist\node_modules\vite\dist\node\chunks\dep-1be34a63.js:75390:48)
at async Server.httpServer.listen (M:\projects\simplemc\webdist\node_modules\vite\dist\node\chunks\dep-1be34a63.js:75406:21)
ERROR: "dev:vite" exited with 1.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
PS W:\Sandbox\Vite\vite-app> npm run dev
> src@0.0.0 dev
> vite
Pre-bundling dependencies:
react
react-dom
react/jsx-dev-runtime
(this will be run only when your dependencies or config have changed)
error when starting dev server:
Error: ENOENT: no such file or directory, open '/NAS/Web/Sandbox/Vite/vite-app/node_modules/react/index.js'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at optimizeDeps (W:\Sandbox\Vite\vite-app\node_modules\vite\dist\node\chunks\dep-971d9e33.js:55810:42)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOptimize (W:\Sandbox\Vite\vite-app\node_modules\vite\dist\node\chunks\dep-971d9e33.js:56631:44)
at async Server.httpServer.listen (W:\Sandbox\Vite\vite-app\node_modules\vite\dist\node\chunks\dep-971d9e33.js:56646:21)
PS W:\Sandbox\Vite\vite-app>
I don't use SMB file share (and I guess all Vite team members doesn't) and it's quite difficult to fix this
this is quite an edge case (there's only one ":+1:"s)
My guess is that this is related to nodejs/node#7726 . We used to use fs.promises.realpath in some places. We now use safeRealpathSync in most places. So it might be already fixed or can be fixed by using them.
Fixing #10802 might fix this issue as a side-effect.
That said, if you create a PR and the complexity is small enough, we'll probably merge that PR.
Describe the bug
When launching from a SMB or file share on windows, it fails to load deps.
Reproduction
The issue here is obvious, open a SMB or file share on windows, then attempt to run vite.
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: