Open targos opened 3 weeks ago
Probably caused by https://github.com/nodejs/node/pull/44340 @Qard
@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,
/Users/mzasso/git/test/undefined/test.cjs:1
require('./app.js')
^
, is generated?
I thought it was https://github.com/nodejs/node/blob/51eb4c0cdaf6257af4302e321dec2dd9cf28c5cb/src/node_errors.cc#L137 but I'm wrong
Would anybody guide me to where this part of the message,
/Users/mzasso/git/test/undefined/test.cjs:1 require('./app.js') ^
, is generated?
I thought it was
https://github.com/nodejs/node/blob/51eb4c0cdaf6257af4302e321dec2dd9cf28c5cb/src/node_errors.cc#L137
but I'm wrong
Found it. https://github.com/nodejs/node/blob/main/lib/internal/modules/cjs/loader.js#L1656
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.