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

Encounter path resolve problem on Windows platform #6

Closed
lackneets opened this issue Feb 22, 2023 · 2 comments
Closed

Encounter path resolve problem on Windows platform #6

lackneets opened this issue Feb 22, 2023 · 2 comments

Comments

@lackneets
Copy link

After migrated @nuxtjs-alt/proxy 2.1.0 to @nuxt-alt/proxy 2.2.0

While startup nuxt dev server, following error reported :

√ Nitro built in 16193 ms  

 ERROR  [worker reload] [worker init] Only URLs with a scheme in: file, data 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:387:5)
  at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1017:11)
  at defaultResolve (node:internal/modules/esm/resolve:1097:3)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:837:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
  at link (node:internal/modules/esm/module_job:75:36)

The situation looks similar to nitrojs/nitro#718

@oneChifu
Copy link

The same problem

@Denoder
Copy link
Member

Denoder commented Mar 29, 2023

@oneChifu @lackneets can you try the latest version of this module to see if that fixes it?

@Denoder Denoder closed this as completed Apr 3, 2023
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

3 participants