Skip to content

[ERR_UNSUPPORTED_ESM_URL_SCHEME] #11

@NathanHannon

Description

@NathanHannon

When I try to run snapai, whether its installed or via npx on Windows, I get the following error:

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:209:11)
    at defaultLoad (node:internal/modules/esm/load:107:3)
    at ModuleLoader.load (node:internal/modules/esm/loader:800:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:580:43)
    at #createModuleJob (node:internal/modules/esm/loader:604:36)
    at #getJobFromResolveResult (node:internal/modules/esm/loader:338:34)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:306:41)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:643:25) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

I suspect its related to #1.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions