diff --git a/lib/internal/modules/run_main.js b/lib/internal/modules/run_main.js index 1e1a1ea46fc6c1..724bc18e9a0b89 100644 --- a/lib/internal/modules/run_main.js +++ b/lib/internal/modules/run_main.js @@ -48,7 +48,6 @@ function resolveMainPath(main) { } catch (err) { if (defaultType === 'module' && err?.code === 'ENOENT') { const { decorateErrorWithCommonJSHints } = require('internal/modules/esm/resolve'); - const { getCWDURL } = require('internal/util'); decorateErrorWithCommonJSHints(err, mainPath, getCWDURL()); } throw err;