-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
swc-node doesn't work with latest node version #736
Comments
Ok I looked into this a bit more and it seems that what happens is:
See in this screenshot where pnp isn't in the stack trace when calling the For comparison, here's the correctly patched fs module's stack trace In conclusion this seems to be an issue with yarn. Edit: can confirm it's a yarn bug, swc-node works fine with npm |
swc-node now works with node 21.2.0 without a problem, after updating to yarn 4.0.2 (thanks to yarnpkg/berry#5961) |
It seems like swc-node broke after node 20.5.1?
To reproduce, execute this:
You should see the following output:
Edit: same thing happens with node v21.1.0
The text was updated successfully, but these errors were encountered: