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 when passing any .js or .json file to edit-entity command #189

Open
Swpb2 opened this issue Oct 8, 2024 · 2 comments
Open

Error when passing any .js or .json file to edit-entity command #189

Swpb2 opened this issue Oct 8, 2024 · 2 comments

Comments

@Swpb2
Copy link

Swpb2 commented Oct 8, 2024

Hi -
Any file I pass to the edit-entity command, even one just generated with generate-template, returns the 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:227:11)
at defaultLoad (node:internal/modules/esm/load:109:3)
at ModuleLoader.load (node:internal/modules/esm/loader:570:13)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:443:56)
at new ModuleJob (node:internal/modules/esm/module_job:76:27)
at #createModuleJob (node:internal/modules/esm/loader:456:17)
at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:266:34)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:247:17)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:482:25) {
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'

I am running:

  • Node.js v22.9.0
  • npm v10.8.3
  • wikibase-cli v18.1.0

Is there a particular way I need to pass the file? Thanks!

Swpb

@maxlath
Copy link
Owner

maxlath commented Oct 8, 2024

This seems to be a duplicate of #186

@maxlath
Copy link
Owner

maxlath commented Oct 8, 2024

I published a patch (f51a006) in v18.2.1 that might fix this issue, can you update and see if it works?

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

2 participants