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

ERR_UNSUPPORTED_ESM_URL_SCHEME on Windows #11838

Closed
simeon9696 opened this issue Oct 12, 2021 · 4 comments · Fixed by nuxt/framework#819
Closed

ERR_UNSUPPORTED_ESM_URL_SCHEME on Windows #11838

simeon9696 opened this issue Oct 12, 2021 · 4 comments · Fixed by nuxt/framework#819

Comments

@simeon9696
Copy link

Before I start the report I just want to say that I'm reallly excited for Nuxt 3 and thank you so much for all your hard work!

Environment

Nuxt CLI v3.0.0-27234271.da7ff44
RootDir: C:\Users\simeon.ramjit\Documents\projects\nuxt3-app
Nuxt project info: 

------------------------------  
- Operating System: `Windows_NT` //I'm running windows 10 Pro 21H1 not sure why this shows up as NT
- Node Version:     `v14.17.6`
- Nuxt Version:     `3-3.0.0-27234271.da7ff44`
- Package Manager:  `npm`
- Bundler:          `Webpack`
- User Config:      `-`
- Runtime Modules:  `-`
- Build Modules:    `-`
------------------------------

👉 Report an issue: https://github.com/nuxt/framework/issues/new

👉 Suggest an improvement: https://github.com/nuxt/framework/discussions/new

👉 Read documentation: https://v3.nuxtjs.org

Describe the bug and expected behavior

Got an ESM loader error after running the final command in getting started: npm run dev -- -o

Server Side Rendering Error: 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 Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:791:11)
    at Loader.resolve (internal/modules/esm/loader.js:89:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:242:28)
    at Loader.import (internal/modules/esm/loader.js:177:28)
    at importModuleDynamically (internal/modules/esm/translators.js:114:35)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at $id_60f0615f (file:///C:/Users/simeon.ramjit/Documents/projects/nuxt3-app/.nuxt/dist/server/server.mjs:85:193)
    at __instantiateModule__ (file:///C:/Users/simeon.ramjit/Documents/projects/nuxt3-app/.nuxt/dist/server/server.mjs:1806:9)
    at __ssrLoadModule__ (file:///C:/Users/simeon.ramjit/Documents/projects/nuxt3-app/.nuxt/dist/server/server.mjs:1754:25)
    at ssrImport (file:///C:/Users/simeon.ramjit/Documents/projects/nuxt3-app/.nuxt/dist/server/server.mjs:1778:13) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

Steps to reproduce

Follow the steps outlined in getting started on a Windows machine

Additional context

The page loads fine but the terminal still gives the error:
image

@simeon9696
Copy link
Author

Seems there's another issue tracking the same #11891

@molotow11
Copy link

molotow11 commented Jul 26, 2022

It is still issue for me. "nuxt": "3.0.0-rc.6",

@danielroe
Copy link
Member

@molotow11 Would you run npx nuxi upgrade --force and if that doesn't resolve, open a new issue with a reproduction? 🙏

@molotow11
Copy link

@danielroe Yes, checked with nuxi upgrade, it is still the same error. Ok, I will create new issue.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants