Closed
Description
The following issue is occurring on Windows when using the make:component
command:
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:701:12)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:514:43)
at #createModuleJob (node:internal/modules/esm/loader:538:36)
at #getJobFromResolveResult (node:internal/modules/esm/loader:306:34)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:274:41)
at async onImport.tracePromise._proto_ (node:internal/modules/esm/loader:577:25) {
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}
Some comments on StackOverflow suggested it was down to lower Node.js version, but even with v22.14.0 the issue appears to exist. There are two issues open on the Vue.js CLI repo (here and here) that are currently open and report the same issue—neither of which are closed or reported to be fixed.