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
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
node -r esm index.js
SyntaxError: The requested module 'file:///Users/daniel/dev/repros/esm/error-prop/controllers/index.js' does not provide an export named 'ControllerA'
at internal/main/run_main_module.js:21:11
--experimental modules:
node --experimental-modules index.mjs
(node:3693) ExperimentalWarning: The ESM module loader is experimental.
file:///Users/daniel/dev/repros/esm/error-prop/controllers/index.mjs:1
export { default as ControllerA } from "./ControllerA.mjs";
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module './ControllerA.mjs' does not provide an export named 'default'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:88:21)
to be more specific: esm: The requested module 'file:///Users/daniel/dev/repros/esm/error-prop/controllers/index.js' does not provide an export named 'ControllerA'
vs: --exp mod: The requested module './ControllerA.mjs' does not provide an export named 'default'
when you compare the two above, --experimental-modules points out directly where and what is wrong. with esm you [kinda] don't know.
The text was updated successfully, but these errors were encountered:
repro for error message case which
--experimental-modules
seems to be more specific about:esm:
--experimental modules:
to be more specific:
esm
: The requested module 'file:///Users/daniel/dev/repros/esm/error-prop/controllers/index.js' does not provide an export named 'ControllerA'vs:
--exp mod
: The requested module './ControllerA.mjs' does not provide an export named 'default'when you compare the two above, --experimental-modules points out directly where and what is wrong. with esm you [kinda] don't know.
The text was updated successfully, but these errors were encountered: