We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df5e0e commit e8be139Copy full SHA for e8be139
lib/internal/modules/run_main.js
@@ -48,7 +48,6 @@ function resolveMainPath(main) {
48
} catch (err) {
49
if (defaultType === 'module' && err?.code === 'ENOENT') {
50
const { decorateErrorWithCommonJSHints } = require('internal/modules/esm/resolve');
51
- const { getCWDURL } = require('internal/util');
52
decorateErrorWithCommonJSHints(err, mainPath, getCWDURL());
53
}
54
throw err;
0 commit comments