Idea detail
windows_esm_entry
reqlan rq/cli/cli_package.rq:28
block
done
Summary
Node's ESM loader on Windows requires `file://` URLs for absolute dynamic `import()`.
A native path such as `C:\...\out\main.js` is read as protocol `c:` and crashes every command, including `init`.
`bin/cli.js` converts the compiled entry with `fsPathToEsmSpecifier` ( `pathToFileURL` ).
The MCP stdio entry mcp.js uses the same `pathToFileURL` conversion.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | cli.js, esm-path.ts, mcp.js |
| status | done |
| tests | windows-esm-entry.test.ts:does not treat a Windows drive letter as a URL scheme, windows-esm-entry.test.ts:CLI bin loads the compiled entry via an ESM file URL helper, windows-esm-entry.test.ts:MCP bin converts the compiled entry with pathToFileURL |
Ancestor context
No ancestor chain recorded.
Outbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| file_reference | "../../packages/mcp/bin/mcp.js" | packages/mcp/bin/mcp.js | mcp.js |
| file_reference | "../../packages/cli/bin/cli.js" | packages/cli/bin/cli.js | cli.js |
| file_reference | "../../packages/cli/src/esm-path.ts" | packages/cli/src/esm-path.ts | esm-path.ts |
| file_reference | "../../packages/cli/test/windows-esm-entry.test.ts:does not treat a Windows drive letter as a URL scheme" | packages/cli/test/windows-esm-entry.test.ts | windows-esm-entry.test.ts:does not treat a Windows drive letter as a URL scheme |
| file_reference | "../../packages/cli/test/windows-esm-entry.test.ts:CLI bin loads the compiled entry via an ESM file URL helper" | packages/cli/test/windows-esm-entry.test.ts | windows-esm-entry.test.ts:CLI bin loads the compiled entry via an ESM file URL helper |
| file_reference | "../../packages/cli/test/windows-esm-entry.test.ts:MCP bin converts the compiled entry with pathToFileURL" | packages/cli/test/windows-esm-entry.test.ts | windows-esm-entry.test.ts:MCP bin converts the compiled entry with pathToFileURL |
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | cli_package | reqlan rq/cli/cli_package.rq | windows_esm_entry |
| references | mcp_package | reqlan rq/core-architecture.rq | windows_esm_entry |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…