mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
Merge pull request #29187 from andrasczeh/patch-1
CLI: Show constraints in error when getting depndencies
This commit is contained in:
commit
71a3eb426c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user