From e0d62e2fccb00e3310e72960d4cdd9aa200c33b0 Mon Sep 17 00:00:00 2001 From: andrasczeh <34349609+andrasczeh@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:01:06 +0200 Subject: [PATCH] #23619 Show constraints in error when getting depndencies --- code/core/src/common/js-package-manager/JsPackageManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/core/src/common/js-package-manager/JsPackageManager.ts b/code/core/src/common/js-package-manager/JsPackageManager.ts index 305ba8d99ed2..1d1f2ef5367c 100644 --- a/code/core/src/common/js-package-manager/JsPackageManager.ts +++ b/code/core/src/common/js-package-manager/JsPackageManager.ts @@ -418,7 +418,7 @@ export abstract class JsPackageManager { .find((version) => satisfies(version, constraint)); invariant( latestVersionSatisfyingTheConstraint != null, - 'No version satisfying the constraint.' + `No version satisfying the constraint: ${packageName}${constraint}` ); return latestVersionSatisfyingTheConstraint; }