Skip to content

Commit

Permalink
fix(npm#4787): error cannot read undefined prop edgesOut
Browse files Browse the repository at this point in the history
  • Loading branch information
haneenmahd committed Jun 23, 2023
1 parent aef96c0 commit c32874d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workspaces/arborist/lib/arborist/build-ideal-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,8 @@ This is a one-time fix-up, please be patient...
}

const parentEdge = node.parent.edgesOut.get(edge.name)
if (!parentEdge) continue

const { isProjectRoot, isWorkspace } = node.parent.sourceReference
const isMine = isProjectRoot || isWorkspace
const conflictOK = this[_force] || !isMine && !this.#strictPeerDeps
Expand Down

0 comments on commit c32874d

Please sign in to comment.