Skip to content

Commit 65aac8e

Browse files
authoredMar 2, 2023
fix(js): fix parsing link dependencies in yarn (#15364)
1 parent 4f8a6fc commit 65aac8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎packages/nx/src/lock-file/yarn-parser.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ function findVersion(
141141
) {
142142
return snapshot.resolution.slice(packageName.length + 1);
143143
}
144-
if (!isBerry && !satisfies(snapshot.version, versionRange)) {
144+
if (
145+
!isBerry &&
146+
snapshot.resolved &&
147+
!satisfies(snapshot.version, versionRange)
148+
) {
145149
return snapshot.resolved;
146150
}
147151
// otherwise it's a standard version

1 commit comments

Comments
 (1)

vercel[bot] commented on Mar 2, 2023

@vercel[bot]

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app

Please sign in to comment.