-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Only URLs with a scheme in: file and data are supported by the default ESM loader. #16834
Comments
I tried downgrading all versions to 16.0.3 and it worked. You can try while waiting for them to fix the latest version. nx report
|
Hi, thanks for reporting, I tried this on my Windows machine with a fresh WSL install. When I did not have node installed on my WSL distro I got the same error. (I had node installed on the Windows side but not the distro). After I installed |
I'm getting this in Windows with node 18.16.0 installed, outside of a WSL environment |
This comment was marked as duplicate.
This comment was marked as duplicate.
I got the same error with node LTS 18.16.0
|
I have the same issue:
I can also confirm that reverting to |
I think I've narrowed it down to #10414 Reverting the change in This goes a bit beyond my understanding of how NX works to implement a fix but hopefully this will help someone else to create a patch |
I am having the same issue. How can I fix this? |
For now, reverting to |
We'll release a patch for this. Thanks for reporting! |
My
|
@KibobiShtrudelz, you have the 16.1.4 version in your package.json:
When you add a js lib, nx will update your package json to 16.1.4. so beware of this behavior. |
Thank you for your lightning fast answer! |
@wizardnet972 Sorry to bother you, one last question. I just downgraded - which option from the nx generator dropdown menu should I choose for NestJS app: |
@KibobiShtrudelz In this case, I would recommend choosing |
Please where is this file Sir? |
Please do help explain exactly how, This.Is.Frustrating |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Project won't start NestJS
Expected Behavior
Project launches NestJS
GitHub Repo
No response
Steps to Reproduce
1.Create a NestJS project and run
Nx Report
Failure Logs
Error: Only URLs with a scheme in: file and 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:399:5) at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1059:11) at defaultResolve (node:internal/modules/esm/resolve:1135:3) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ESMLoader.import (node:internal/modules/esm/loader:525:22) at importModuleDynamically (node:internal/modules/cjs/loader:1186:29) at importModuleDynamicallyWrapper (node:internal/vm/module:429:21) at importModuleDynamically (node:internal/vm:106:46)
Operating System
Additional Information
It may not be your fault.
So, I apologize if it is.
The text was updated successfully, but these errors were encountered: