Stevenbdl
Stevenbdl
…reading 'x') and Error: TypeError: Cannot set properties of undefined (setting 'g')
Line issue: ` endX = this.endNode.x,` [Line where is issue](https://github.com/qiao/PathFinding.js/blob/7b9c3ef3ef45f9130af5a1c1081be2d64305399f/src/finders/JumpPointFinderBase.js#L71) My solution: `endX = this.endNode?.x, endY = this.endNode?.y` [For more details](https://github.com/projectstorm/react-diagrams/issues/899)
Issue path: src/finders/JumpPointFinderBase.js [Issue detailed](https://github.com/projectstorm/react-diagrams/issues/898) [Line where is issue](https://github.com/qiao/PathFinding.js/blob/7b9c3ef3ef45f9130af5a1c1081be2d64305399f/src/finders/JumpPointFinderBase.js#L30) My solution: `startNode = this.startNode = grid.getNodeAt(startX, startY) || {}`
**Pathfinding dependence issue** Line issue: ` endX = this.endNode.x,` [Line where is issue](https://github.com/qiao/PathFinding.js/blob/7b9c3ef3ef45f9130af5a1c1081be2d64305399f/src/finders/JumpPointFinderBase.js#L71) My solution: `endX = this.endNode?.x, endY = this.endNode?.y`
### Pathfinding dependence issue The issue is the next: Error: TypeError: Cannot set properties of undefined (setting 'g') Path of the issue: JPFNeverMoveDiagonally.push../node_modules/pathfinding/src/finders/JumpPointFinderBase.js.JumpPointFinderBase.findPath Solution: The solution was add "or, ||"...