-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Wrong error annotation when commonjs require
s an ES module
#55350
Comments
@RafaelGSS is the one that finished and landed that PR, so they would probably know better what is going on here. |
Sorry, I've just seen it. I'll check when I get some time (currently traveling for 2 weeks) |
Would anybody guide me to where this part of the message,
, is generated? I thought it was Line 137 in 51eb4c0
|
Found it. https://github.com/nodejs/node/blob/main/lib/internal/modules/cjs/loader.js#L1656 |
Getting Same Error:Here are my logs:
My NextJS Structure:
|
Version
^22.4.0
main
with the--no-experimental-require-module
flag.Platform
Subsystem
esm,module
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
It starts to happen with v22.4.0. v20.x and <=22.3.0 are not affected.
What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Additional information
As you can see, this seems to be caused by the presence of
TracingChannel.traceSync
in the stack trace.The text was updated successfully, but these errors were encountered: