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

Nuxt Preview ERR_UNSUPPORTED_ESM_URL_SCHEME on Windows #1123

Closed
kecrily opened this issue Mar 29, 2022 · 1 comment
Closed

Nuxt Preview ERR_UNSUPPORTED_ESM_URL_SCHEME on Windows #1123

kecrily opened this issue Mar 29, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@kecrily
Copy link

kecrily commented Mar 29, 2022

Summary

Error when using nuxt preview in VSCode.

Log

Details
node "C:\Users\kecrily\.vscode\extensions\johnsoncodehk.volar-0.33.10\bin\nuxi.js"       
node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
    at new NodeError (node:internal/errors:371:5)
    at throwIfUnsupportedURLProtocol (node:internal/modules/esm/resolve:1035:11)
    at defaultResolve (node:internal/modules/esm/resolve:1105:3)
    at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
    at ESMLoader.import (node:internal/modules/esm/loader:332:22)
    at importModuleDynamically (node:internal/modules/cjs/loader:1042:29)
    at importModuleDynamicallyWrapper (node:internal/vm/module:437:21)
    at importModuleDynamically (node:vm:381:46)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

Environment

  1. Windows 11 (22581.100)
  2. Node v16.14.1
  3. Volar v0.33.10
  4. Nuxt v3.0.0-27465767.70f067a
@johnsoncodehk johnsoncodehk added the bug Something isn't working label Apr 10, 2022
@Radulepy
Copy link

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants