We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ce003 commit 6e5d524Copy full SHA for 6e5d524
lib/internal/modules/run_main.js
@@ -44,7 +44,6 @@ function resolveMainPath(main) {
44
} catch (err) {
45
if (defaultType === 'module' && err?.code === 'ENOENT') {
46
const { decorateErrorWithCommonJSHints } = require('internal/modules/esm/resolve');
47
- const { getCWDURL } = require('internal/util');
48
decorateErrorWithCommonJSHints(err, mainPath, getCWDURL());
49
}
50
throw err;
0 commit comments