From af8d7573c6b8330431e15f51cdd18420e5a49fa7 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 305ba8d99ed..1d1f2ef5367 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; }