-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
ERR_INTERNAL_ASSERTION: Unexpected module status 3 #58515
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
Comments
"module status 3" is kEvaluating, when apparently kEvaluated is expected. b94f63b is most likely responsible. @joyeecheung? |
Thanks for pinging. I think this is again caused by the re-invented
It might be possible to put some band-aid on this to make this not show up again (e.g. allow kEvaluating when it's from reinvented require), the full fix would probably need to revert most of what's added by #47999 which at this point would need quite a bit more refactoring. |
Thank you for your replies and your work on Node.js. For me the main difference compared to the other issues I have already reported is that this one was introduced in v24.1.0. Fortunately, there has always been a workaround so far, so none of these issues is blocking us from continuing to work on a new alpha version of our library that uses registerHooks. |
Fix (or band-aid) in #58598 |
Uh oh!
There was an error while loading. Please reload this page.
Version
v24.1.0
Platform
Subsystem
module
What steps will reproduce the bug?
Create the following files:
instrument.mjs
util1.js
util2.js
app.js
Run
node --import ./instrument.mjs app.js
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
No exception is thrown. It prints
Hello from app.js
.What do you see instead?
Additional information
The issue does not occur in Node.js v24.0.1 or v23.11.1. I discovered this issue by importing hono, a popular web framework, while using
registerHooks
.The text was updated successfully, but these errors were encountered: