-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
ESM broken on Node 21+ #153
Comments
I'm still getting this issue on Node v22.5.1 and TypeScript 5.5.4 with ts-patch 3.2.1 |
Just ran into this one when trying to learn how transformers work with ts-patch. ts-patch itself seems to work fine on 22.0.0, but having a transform plugin defined in a ESM project will cause this error. From my limited testing, the most recent working version of node appears to be 21.7.3. |
I just tried 21.7.3 and you're right, @Makeshift, it works. That is bizarre, as 21.4.0 does not work. 23.3.0 has a crash, which may provide some more detail. It seems the root of the issue might be within something the
|
Nasty one. Does not make sense. Potentially an issue with Node. It says
originalRequire
is undefined, but it isn't. If we swapthis
out of the call, it does not have the error, but it breaks require.The text was updated successfully, but these errors were encountered: