Nx
Enterprise
Nx
fix(js): guard against undefined closest node in rehoistNodes When transitive dependencies have multiple versions where neither version is reachable from a direct dependency in package.json, pathLengthToIncoming() returns undefined for all nested nodes. This leaves 'closest' undefined, causing switchNodeToHoisted() to crash with: 'Cannot read properties of undefined (reading "name")' This fix adds a guard to only call switchNodeToHoisted() when a closest node was actually found. Fixes #34322
nx-cloud record -- nx format:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx-cloud record -- nx format:check
Click to copy
Linux
4 CPU cores
2c8d6148
34347