Description
Running pnpm run lint on Windows fails with ERR_UNSUPPORTED_ESM_URL_SCHEME, reporting Received protocol 'd:'. This appears to be caused by Node.js ESM loader not handling Windows absolute paths (e.g., D:\...) correctly.
Steps to reproduce
- Clone the repository:
git clone https://github.com/rstackjs/rslog
cd rslog
pnpm install
pnpm run lint
Actual result
Error excerpt:
rslint: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: 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 'd:'
Expected result
The lint command should complete without errors.
Environment
System:
OS: Windows 11 10.0.26200
CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H
Memory: 14.36 GB / 31.47 GB
Binaries:
Node: 24.14.1 - C:\Users\20919\.vite-plus\js_runtime\node\24.14.1\node.EXE
npm: 11.11.0 - C:\Users\20919\.vite-plus\js_runtime\node\24.14.1\npm.CMD
pnpm: 10.32.1 - C:\Users\20919\AppData\Local\pnpm\pnpm.CMD
bun: 1.3.11 - C:\Users\20919\.bun\bin\bun.EXE
npmPackages:
@rslib/core: ^0.20.0 => 0.20.0
@rslint/core: ^0.3.4 => 0.3.4
@rstest/core: ^0.9.4 => 0.9.4
@types/node: ^24.12.0 => 24.12.0
path-serializer: ^0.6.0 => 0.6.0
prettier: ^3.8.1 => 3.8.1
strip-ansi: ^7.2.0 => 7.2.0
supports-color: ^10.2.2 => 10.2.2
typescript: ^6.0.2 => 6.0.2
Description
Running
pnpm run linton Windows fails withERR_UNSUPPORTED_ESM_URL_SCHEME, reportingReceived protocol 'd:'. This appears to be caused by Node.js ESM loader not handling Windows absolute paths (e.g.,D:\...) correctly.Steps to reproduce
git clone https://github.com/rstackjs/rslog cd rslog pnpm install pnpm run lintActual result
Error excerpt:
Expected result
The lint command should complete without errors.
Environment