You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> node --import ./register.mjs test.js(node:5296) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time(Use `node --trace-warnings ...` to show where the warning was created)
How often does it reproduce? Is there a required condition?
Version
v22.1.0
Platform
Darwin MAGIT00999.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64
Subsystem
No response
What steps will reproduce the bug?
Prepare the 3 files:
Then execute:
How often does it reproduce? Is there a required condition?
It happens only with:
If it does not handle commonjs files like this, it won't happen.
What is the expected behavior? Why is that the expected behavior?
require(json_file)
in commonjs modules should not emit this warning.What do you see instead?
It emits warning
Additional information
No response
The text was updated successfully, but these errors were encountered: