-
Notifications
You must be signed in to change notification settings - Fork 55
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
Importing ES6 modules does not work on Windows #35
Comments
I have been stuck on this error for half a day and I am glad to see it here. I tried replacing line 178 of my local node.js file but it's still throwing the same error. Is there a known work around for this until its fixed in the release version? |
mention the fix in the pull request does not address the commonjs node file Question why is my esm project even calling into the cjs file? I have my type set to module |
In the meantime, I have I will add your fix for the CJS version However, it would be also great to hear from the module maintainers? Is this module still maintained? It seems to be somewhat popular. I am surprised that something as fundamental as this has been left out to gather dust. Now that we have Isn't it time to have a grand unified API? I would even dare to suggest that the ES specification should probably include multithreading with a standard import mechanism. What do the high priests of the TSC think about this? Especially, since there is already a de-facto standard: const worker = new Worker( new URL( './worker.js', import.meta.url ) ) Everything needed is to write it down as such and implement WebWorker in Node.js. |
Importing a worker in ES6 mode fails on Windows:
ends with:
The problem is nodejs/node#31710
(yes, initially, mostly everyone is as surprised as I was - but it seems that everyone agrees that this is how it should be)
It comes from this import:
web-worker/node.js
Line 178 in 29fef97
Which happens after removing the
file:///
part here:web-worker/node.js
Line 101 in 29fef97
The text was updated successfully, but these errors were encountered: