From 0fd632198e992a37325a88e3f1e59c342856f959 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 3 Nov 2024 19:43:58 +0100 Subject: [PATCH] esm: fix broken assertion in `legacyMainResolve` --- lib/internal/modules/esm/resolve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**