Version
v21.7.3
Platform
Darwin <SYSTEM>.local 23.2.0 Darwin Kernel Version 23.2.0: Thu Nov 9 06:28:02 PST 2023; root:xnu-10002.60.71.505.1~3/RELEASE_X86_64 x86_64
Subsystem
No response
What steps will reproduce the bug?
- run
node --expose-internals
- Attempt to
require('internal/bootstrap/realm')
How often does it reproduce? Is there a required condition?
This bug occurs every time
What is the expected behavior? Why is that the expected behavior?
The expected behavior is for 'internal/bootstrap/realm' to be imported
What do you see instead?
node:internal/modules/cjs/loader:1145
throw err;
^
Error: Cannot find module 'internal/bootstrap/realm'
Require stack:
- /path/to/file.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
at Module._load (node:internal/modules/cjs/loader:983:27)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/path/to/file.js:0:0)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/path/to/file.js' ]
}
Note that /path/to/file.js:0:0 is a modified statement, and is not the actual source file.
Additional information
No response
Version
v21.7.3
Platform
Darwin <SYSTEM>.local 23.2.0 Darwin Kernel Version 23.2.0: Thu Nov 9 06:28:02 PST 2023; root:xnu-10002.60.71.505.1~3/RELEASE_X86_64 x86_64
Subsystem
No response
What steps will reproduce the bug?
node --expose-internalsrequire('internal/bootstrap/realm')How often does it reproduce? Is there a required condition?
This bug occurs every time
What is the expected behavior? Why is that the expected behavior?
The expected behavior is for
'internal/bootstrap/realm'to be importedWhat do you see instead?
Additional information
No response