You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong ERR_REQUIRE_CYCLE_MODULE for require(esm) #55516
How often does it reproduce? Is there a required condition?
/
What is the expected behavior? Why is that the expected behavior?
It should throw ERR_REQUIRE_ASYNC_MODULE
What do you see instead?
It throws ERR_REQUIRE_CYCLE_MODULE
Additional information
Probably all the places that currently assert that a module is either not loaded or already evaluated should be changed to check that, the module is either not loaded, evaluated, or instantaited.
Activity
joyeecheung commentedon Oct 24, 2024
Thanks for reporting it, fix in #55520
module: fix error thrown from require(esm) hitting TLA repeatedly
module: fix error thrown from require(esm) hitting TLA repeatedly
module: fix error thrown from require(esm) hitting TLA repeatedly