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 }}
Repository navigation
Module not found when module is named con.js with --experimental-modules #29572
This bug happens when importing from a module named con.js, case insensitive, while using --experimental modules
Or, using this command node --experimental-modules ./script.js
where script.js is this line: import con from './con.js'
Full output:
$ node --experimental-modules ./test.js
(node:10604) ExperimentalWarning: The ESM module loader is experimental.
internal/modules/esm/default_resolve.js:79
let url = moduleWrapResolve(specifier, parentURL);
^
Error: Cannot find module C:\dev\con-test\con.js imported from C:\dev\con-test\test.js
at Loader.resolve [as _resolve] (internal/modules/esm/default_resolve.js:79:13)
at Loader.resolve (internal/modules/esm/loader.js:73:33)
at Loader.getModuleJob (internal/modules/esm/loader.js:152:40)
at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:43:40)
at link (internal/modules/esm/module_job.js:42:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
changed the title [-]Module not found when module is named con.js/Con.js with --experimental-modules[/-][+]Module not found when module is named con.js with --experimental-modules[/+]on Sep 16, 2019
Activity
[-]Module not found when module is named con.js/Con.js with --experimental-modules[/-][+]Module not found when module is named con.js with --experimental-modules[/+]bzoz commentedon Mar 16, 2020
Fixed by #29574, but the commit does not have the necessary metadata to autoclose this.