Only URLs with a scheme in: file, data are supported by the default ESM loade
See original GitHub issueEnvironment
- Operating System:
Windows_NT
- Node Version:
v18.12.1
- Nuxt Version:
3.0.0
- Nitro Version:
1.0.0
- Package Manager:
npm@8.19.2
- Builder:
vite
- User Config:
modules
,typescript
,build
,css
,vite
,runtimeConfig
- Runtime Modules:
nuxt-security@0.7.0
- Build Modules:
-
Reproduction
Versions
- nuxt: v3.0.0
- node: v18.12.1
- windows: 10
By installing nuxt security and placing the dependency in nuxtjs config - modules: [‘nuxt-security’] - https://nuxt.com/modules/security
Describe the bug
[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:’
Additional context
It should be noted that I have tried several versions of nuxt and node - I have deleted node_modules - yesterday I upgraded nuxt and today again.
Issue Analytics
- State:
- Created 10 months ago
- Reactions:7
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file ...
Notice the error message: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid...
Read more >Only file and data URLs are supported by the default ESM ...
... Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received...
Read more >Lab 7.1 ERR_UNSUPPORTED_ESM_URL_SCHEME
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be ...
Read more >Only file and data URLs are supported by the default ESM ...
The part of Vue containing that bug is the loader for the vue.config.js (or .mjs / .cjs ) configuration file. Vue actually provides...
Read more >https://nodejs.org/api/esm.md
Outside of those cases, Node.js will use the CommonJS module loader. ... `file:`, `node:`, and `data:` URL schemes are supported.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pi0 @danielroe guys, this is quite an important bug, it means that for the last month or so people are not able to run the development environment on Windows. It is really important for the adoption of nuxt 3 that someone takes care of it!
Unfortunately still an issue with:
Windows_NT
v16.13.1
3.0.1-rc.0-27848798.0cb9a4c
2.0.0-27847631.8186a02
yarn@3.3.0
vite
ssr
,runtimeConfig
,typescript
,css
,intlify
,modules
,alias
,vite
nuxt-icon@0.1.7
,@nuxtjs/robots@3.0.0
,@vueuse/nuxt@9.6.0
,@intlify/nuxt3@0.2.4
-
I’ll try to provide a sandbox reproduction in the upcoming days @danielroe!
Error log: