-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
crash after set process.default to any value and then firstly require or import process module #51480
Comments
My question would be why would you use both module format at the same time. Sorry, the question might sounds junior. I am just curious. |
Here's the stack trace from the crash:
That seems irrelevant. |
Medhansh404
pushed a commit
to Medhansh404/node
that referenced
this issue
Jan 19, 2024
PR-URL: nodejs#51481 Fixes: nodejs#51480 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
marco-ippolito
pushed a commit
to marco-ippolito/node
that referenced
this issue
Jan 22, 2024
PR-URL: nodejs#51481 Fixes: nodejs#51480 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
marco-ippolito
pushed a commit
to marco-ippolito/node
that referenced
this issue
Feb 2, 2024
PR-URL: nodejs#51481 Fixes: nodejs#51480 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
marco-ippolito
pushed a commit
to marco-ippolito/node
that referenced
this issue
Feb 19, 2024
PR-URL: nodejs#51481 Fixes: nodejs#51480 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
v20.10.0
Platform
No response
Subsystem
seems loader init the esm builtin from cjs, which shown on process because only process module can be accessed before require/import.
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
every time.
What is the expected behavior? Why is that the expected behavior?
don't crash. and esm version should not use the modified cjs version to init its module names, if I'm right.
What do you see instead?
crash (even not throw).
Additional information
No response
The text was updated successfully, but these errors were encountered: