diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js index de53b11f1121da..141a30fcf486a4 100644 --- a/lib/internal/modules/esm/resolve.js +++ b/lib/internal/modules/esm/resolve.js @@ -216,7 +216,7 @@ function legacyMainResolve(packageJSONUrl, packageConfig, base) { } // Not found. throw new ERR_MODULE_NOT_FOUND( - fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base)); + fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base), null); } /**