vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.25k stars 2.14k forks source link

`tinyglobby` hangs when build script or running local dev using Windows #4357

Closed userquin closed 2 weeks ago

userquin commented 2 weeks ago

Describe the bug

Running pnpm run build on local VP repo on a Windows machine hangs.

Reproduction

Run pnpm run build on a Windows machine

Expected behavior

Shouldn't hang

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 34.88 GB / 63.71 GB
  Binaries:
    Node: 22.6.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.3 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355

Additional context

Using fast-glob just works.

We can fix tinyglobby using cwd and removing absolute path for the workers.

Validations