nuxi generate on Windows outpus error " ERROR 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:'" #4232
Comments
However, the nuxi build command, ditched the |
Sorry for the regression. It should be resolved with |
heylo~ i've just made a clean nuxt 3 project using -= my env =-
i've tried looking forward to a solution. |
after this, the error has changed to:
What could I do next? |
I excute: npx nuxi upgrade --force |
my nuxt version: 3.0.0-27494471.1091d45 `yarn run v1.22.18 ERROR Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' 22:05:59 at new NodeError (internal/errors.js:322:7) error Command failed with exit code 1. |
@keen-wang @euler-king @kamaslau the bug has been fixed by Nuxt team in pull 70. try update with |
On macOS it is, but on Windows it remains an error. |
I can confirm that It's still reproducible on Windows, please, reopen |
@AndrewBogdanovTSS Would you provide a reproduction in that case? |
@danielroe it will be challenging to provide a web available repro link since it's only reproducible on a Windows machine |
You are very welcome to provide a minimal github repo that needs to be run on a Windows machine. |
I have the same problem right now i have 3.0.0-rc.12 version and still facing this issue ? any updates ? |
Can you provide a reproduction then? |
@manniL in my case it's related to the issue with @nuxtjs/html-validator |
Him I have the same problem 3.0.0-rc.13 version on Windows machine
|
@phanmn do you use @nuxtjs/html-validator ? |
Hi, I had the same problem with the @nuxtjs/html-validator module but also with 'nuxt-security' module. Everything works fine without it. |
for me i had the issue with @nuxtjs/i18n package |
Same issue with new docus theme npx nuxi init docs -t themes/docus 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:' "devDependencies": {
|
this error is still displayed
|
当我使用 |
I get the same error with @nuxtjs/robots on
|
The same problem ;( |
You're probably encountering a similar issue to the one here, which has recently been resolved in nitro and will be available in the next release, or on the edge channel. If anyone is still experiencing an issue similar to this when trying the edge release, please open a new issue with a reproduction rather than commenting here. |
Environment
Windows_NT
v17.9.0
3.0.0-27491748.3186841
pnpm@6.32.6
vite
target
-
-
Reproduction
package.json
nuxt.config.ts
When do command
pnpm generate
in terminal, outputs are:Many thanks for any help.
Describe the bug
This bug occurs with even the very latest version of nuxt3 (3.0.0-27491748.3186841).
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: