mirror of https://github.com/nodejs/node.git
module: remove duplicated import
PR-URL: https://github.com/nodejs/node/pull/54942 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
eda98728da
commit
12f92b04f4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue