-
Notifications
You must be signed in to change notification settings - Fork 13
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
--use-loader fails with NodeJS 20.0.0 #39
Comments
Thank you for reporting! This is a bug in Node.js itself and, per the comments on the issue, will be fixed in 20.1.0 (or 20.0.1 if one is ever released). Until then I suggest you downgrade to 18 or 19. |
Reopening because 20.1.0 was released today but it hasn't solved the problem. I'm still pretty sure it's a Node issue but we need to investigate just in case. |
@cyco130 My test with node 20.1.0 show no change in the behavior - thanks for finding the node issue! |
@cyco130 please have a look at this problem - I tested with node version |
I now know the root cause: Node 20 runs ESM loaders in a separate thread but Vavite's loader relies on a global variable. This will require a substantial rework of the system: We'll have to proxy everything through a message channel. As such, it will require quite a bit of time :( If you're using |
🙁 this sounds really like a lot of work - maybe you should not support nodejs v20.x and exit the loader with a message pointing to this issue
Debugging the backend with sourcemaps is my only use case and I can confirm this works now with |
The command will finish after some time without any output:
a look at the processes (ps xa) shows these processes still running in the background:
This problem does not exist if I downgrade to node version 18 - replace 20:
.devcontainer/devcontainer.json
switch number in image tag..javascript-node:0-20-bullseye
Here is my repo including a VSCode DevContainer to simulate the problem:
https://github.com/aheissenberger/vavite-node-loader-node20-fail
I have exactly the same problem with the nodejs 20.0.0 version on MacOS installed with
brew
.The text was updated successfully, but these errors were encountered: