ECMAScript modules requires .mjs extension since 12.0.0 #27407
Labels
esm
Issues and PRs related to the ECMAScript Modules implementation.
experimental
Issues and PRs related to experimental features.
node --experimental-modules --harmony test
On v11.13.0, it runs
test/index.mjs
On v12.0.0, it throws "
Cannot find module '/XXX/test' imported from /XXX/
"Running
node --experimental-modules --harmony test/index
fails too.Running
node --experimental-modules --harmony test/index.mjs
fails on inner imports.The text was updated successfully, but these errors were encountered: