-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Bug] Error ERR_UNSUPPORTED_ESM_URL_SCHEME #22
Labels
bug
Something isn't working
Comments
I'll try to test this issue on windows, and it would be helpful if you could provide a reproduction. |
Of course. Here is a repro: https://github.com/joris-fonck-loreal/tsslint-vscode-ext-repro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
First of all, thank you for your amazing work for this tool, volar and other projects!
I'm trying to use
tsslint
on Windows and I got the following error when using theCLI
:Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: 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:'
.The error appear in
watch.ts
fileline 23
. The given imported file atline 21
is not usingfile://
protocol. But when I tried to putfile
protocol at the beginning of the path, I still have the same issue. So maybe it's because of the created hashed file innode_modules/.tsslint/<hash>.mjs
. There are usingc://
protocol to import files but I don't know how this file is generated so I didn't tested it.The text was updated successfully, but these errors were encountered: