unjs / undocs

Minimal Documentation theme and CLI for shared usage across UnJS projects.

Home Page:https://undocs.pages.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default template fails on Windows with Pnpm

luminarious opened this issue · comments

Environment

Windows 11, Node 20.12, Pnpm 8.15.6

Reproduction

Unable to add reproduction repo because there was no code added by me?

Describe the bug

I ran the commands listed in the Guide to create a new project and it failed to start in a meaningful way.

Additional context

No response

Logs

PS C:\Code> pnpm dlx giget gh:unjs/undocs/template undocs --install
Packages: +34
++++++++++++++++++++++++++++++++++
Progress: resolved 34, reused 34, downloaded 0, added 34, done
Packages: +1036
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1094, reused 751, downloaded 284, added 1036, done

devDependencies:
+ undocs 0.2.21

Done in 15.8s
✨ Successfully cloned unjs-undocs to undocs                                                                                                                    11:35:37

PS C:\Code> cd .\undocs\
PS C:\Code\undocs> pnpm run dev

> docs@ dev C:\Code\undocs
> undocs dev

Nuxt 3.11.2 with Nitro 2.9.6

  ➜ Local:    http://localhost:4000/
  ➜ Network:  use --host to expose


[11:36:07]  ERROR  Cannot start nuxt:  Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

  at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:239:11)
  at defaultLoad (node:internal/modules/esm/load:130:3)
  at ModuleLoader.load (node:internal/modules/esm/loader:403:13)
  at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:56)
  at new ModuleJob (node:internal/modules/esm/module_job:67:26)
  at #createModuleJob (node:internal/modules/esm/loader:297:17)
  at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:254:34)
  at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:235:17)
  at async ModuleLoader.import (node:internal/modules/esm/loader:322:23)

Hi. please make sure to use Bun and WSL only. This tool is not stable yet, sorry.