-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME] on Windows Using [npm run dev] #64372
Comments
This comment has been minimized.
This comment has been minimized.
When creating a Next App using |
same errors using |
I'm getting the same issue, thought it was my npm or node. |
npx create-next-app@14.1.0 works. The above issue occurred while installing 14.1.4 onwards for me. For the time being using version 14.1.0 will do the job I guess |
Yes we also had to create our projects using version 14.1.0 |
I have the same error; I have just installed node js and created the Nextjs app with npx create-next-app@latest added 360 packages, and audited 361 packages in 1m 133 packages are looking for funding found 0 vulnerabilities npm run dev
▲ Next.js 14.2.0
✓ Starting... I have disabled telemetry: Then I tried again:
▲ Next.js 14.2.0
✓ Starting... And then I got the error: src\app\layout.tsx Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:' |
Here is a temprary solution. |
This actually works
|
There is no next version 14 yet |
update Node.js v21.7.3 |
This solution is working, Thank you |
After creating a next app by using |
Closing as duplicate of #64371 |
Tks! Worked for me. |
i even restarted my IDE now i've lost all extensions lol ..i knew everything was working well last night |
even i create a new project and tried to change the location of every folder still this error showing |
You Can install v @14.1.0 |
I installed the latest version, but it wasn't working as expected. Instead, I used |
using npx create-next-app@14.1.0 . is actually working. I dont why this error is occurring. anyone got a clue? |
It' s happen to me also at the first it work correctly but after I change the font the error occur ?? |
The latest version has a problem that the developers of Next are dealing with. Please change the version |
14.2.0 version still has this error |
I renamed my |
Im using 14.2.0-canary.66 Next version, and this worked for me, thanks. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/Ahmed-Elgendy25/Next.js
To Reproduce
1- Clone the project: https://github.com/Ahmed-Elgendy25/Next.js "v14.2.0"
2- npm run dev
Current vs. Expected behavior
After I did (npx create-next-app@latest) and tried to run the project with (npm run dev)...
I expected to see the default homepage of next.js,
But It tells me:
An error occurred in next/font.
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'
at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:239:11)
at defaultLoad (node:internal/modules/esm/load:130:3)
at ModuleLoader.load (node:internal/modules/esm/loader:403:13)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:56)
at new ModuleJob (node:internal/modules/esm/module_job:67:26)
at #createModuleJob (node:internal/modules/esm/loader:297:17)
at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:254:34)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:235:17)
at async ModuleLoader.import (node:internal/modules/esm/loader:322:23)
⨯ app\layout.tsx
An error occurred in next/font.
Provide environment information
Which area(s) are affected? (Select all that apply)
CLI (create-next-app)
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: