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
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'
}
The text was updated successfully, but these errors were encountered:
Ntropish
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
Sep 16, 2019
Node 12.10.0
Windows 64-bit
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:
The text was updated successfully, but these errors were encountered: