-
-
Notifications
You must be signed in to change notification settings - Fork 91
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 10 : ESM Loader absolute path error #77
Comments
Am unable to debug this as I do not have access to a Windows machine |
Usually this can be fixed by changing the package.json scripts use of For example line 10:
becomes
It could be more extensive than this, but this is a good starting point. |
Our team is also blocked by this, could someone take a look? Thanks |
I just ran into this as well. All I did was add a
I assume the CLI is passing a raw Windows path to this file or its output to esbuild, hence the (As an aside, I was trying to look at the build options to see if I could get it output a source map or not transpile the code. I assume that has to be done via this build file?) |
I think the From this node bug (which is "by design" but continues to trip people up), it looks like absolute paths need to be passed in via I think the solution is just to use a relative path, if the CWD is set correctly, like |
I tried @fwextensions idea and it worked by changing the "build-bundles-async.js" file I found in the node_modules folder. it was something like this: |
It looks like this was maybe fixed for the main.js file, but it still happens for the |
Fixed in #211 |
This should be fixed as of |
info Building...
error esbuild 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:'
The text was updated successfully, but these errors were encountered: