Relative require()
in commonjs
source not processed by ESM Loader
#53198
Labels
require()
in commonjs
source not processed by ESM Loader
#53198
Version
v22.2.0
Platform
Darwin mac.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 arm64
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Consistently
What is the expected behavior? Why is that the expected behavior?
The
load
hook doc says:https://nodejs.org/api/module.html#resolvespecifier-context-nextresolve:~:text=When%20a%20source,will%20not%20apply.
What do you see instead?
require()
calls with relative path are still processed by the CommonJS loaderAdditional information
No response
The text was updated successfully, but these errors were encountered: