Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: [ERR_UNSUPPORTED_ESM_URL_SCHEME] when running pnpm dev on Windows #23

Open
AngeloGiacco opened this issue Oct 28, 2024 · 0 comments

Comments

@AngeloGiacco
Copy link

I get this when running pnpm dev in /agent on Windows


PS C:\Users\Angelo\Documents\Programming\poppa\poppa-playground\agent> pnpm dev

> [email protected] dev C:\Users\Angelo\Documents\Programming\poppa\poppa-playground\agent
> pnpm exec tsx playground_agent.ts dev

[17:20:35.453] INFO (34644): starting worker
    version: "0.1.0"
[17:20:35.507] INFO (34644): Server is listening on port 60154
[17:20:35.583] INFO (34644): registered worker
    version: "0.1.0"
    id: "AW_Qk9DxTbxeVPk"
    server_info: {
      "edition": "Cloud",
      "version": "1.8.0",
      "protocol": 15,
      "region": "UK",
      "nodeId": "NC_OLONDON1B_uf6yMDvJHokS",
      "agentProtocol": 0
    }

node:internal/modules/run_main:115
    triggerUncaughtException(
    ^
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 'c:'
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:239:11)
    at defaultLoad (node:internal/modules/esm/load:120:3)
    at nextLoad (node:internal/modules/esm/hooks:746:28)
    at load (file:///C:/Users/Angelo/Documents/Programming/poppa/poppa-playground/agent/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/esm/index.mjs?1730136035684:2:1768)
    at nextLoad (node:internal/modules/esm/hooks:746:28)
    at Hooks.load (node:internal/modules/esm/hooks:383:26)
    at handleMessage (node:internal/modules/esm/worker:199:24)
    at Immediate.checkForMessages (node:internal/modules/esm/worker:141:28)
    at process.processImmediate (node:internal/timers:483:21) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

pnpm version = 9.12.2
node version = 22.5.1

any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant