Skip to content

Failure to load deps when launched from a windows SMB file share #5258

@roobscoob

Description

@roobscoob

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

System:
    OS: Windows 10 10.0.18362
    CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
    Memory: 29.59 GB / 63.94 GB
  Binaries:
    Node: 16.6.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.17.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 94.0.4606.81
    Edge: Spartan (44.18362.449.0)
    Internet Explorer: 11.0.18362.1

Used Package Manager

npm

Logs

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.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions