-
Notifications
You must be signed in to change notification settings - Fork 20
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
Windows - ERR_UNSUPPORTED_ESM_URL_SCHEME #71
Comments
I'm encountering this issue as well. Quick debugging led me to the following line
require.resolve returns full path to file, generally starting with C: on windows, which the import function does not like. Other usages of import(require.resolve(..)) fail in similar manner.
Is there any reason why |
@tobiasdiez i will do some tests on Windows, would please create a reproduction repo for me? |
Perfect, I think it should already occur in the demo (see issue description), but here is also a real world repo: JabRef/JabRefOnline#2244 |
you are completely right, this was some legacy code from storybook codebase, i did not pay attention to it since it is not breaking on Mac, but yeah should work fine, Thanks @Ingramz |
@tobiasdiez , @Ingramz would please test now, https://stackblitz.com/~/github.com/storybook-vue/storybook-nuxt-demo. |
|
I can confirm this error is fixed. However, I now get issues of the following form suggesting that the resolution of the nuxtlink is not working (not sure if its windows-specific):
|
Hello. I am still encountering this issue with latest version on Windows. Is there any fix for it? |
From additional testing I can confirm that version 0.2.1 works. But 0.2.2 and newer throws this exact error. |
Problems
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 'c:'
Environment
The problem was reproducible on two different windows 10/11 machines.
Do you have any ideas?
The text was updated successfully, but these errors were encountered: