-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Cannot find module 'internal/bootstrap/loaders' #33656
Comments
Actually a friend of mine just ran the command echo "require('internal/bootstrap/loaders')" | node on her machine and it threw the exact same error. 🤔 |
This is intentional. Internal modules are not meant to be require-able for user code. There is a command line flag to expose them to our own tests but we don't publicize that flag to minimize misuse. If you're having issues with the esm module you should report that on their issues tracker. |
Ah I just discovered that the Thanks for clarifying! |
What steps will reproduce the bug?
Install NodeJS (I use
n
, but I also reinstalled with Node installer from website), create filetest.js
and run
node test
How often does it reproduce? Is there a required condition?
I'm sure that it's not generally reproducible, but I can't figure out why this issue is occurring. I ran into this issue when I tried to use
esm
which internally usesrequire('internal/bootstrap/loaders')
.What is the expected behavior?
Module can be loaded without throwing an error.
What do you see instead?
Additional information
I'm using a Mac with two users which are sharing node and npm (I'm using them for work / private), maybe that plays a role here? But the error happens on both users. I tried the proposed solutions of #9355 and #9377 but nothing worked for me unfortunately.
The text was updated successfully, but these errors were encountered: