react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

Error: TypeError: Cannot set properties of undefined (setting 'g')

Open Stevenbdl opened this issue 2 years ago • 0 comments

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, ||" logical operator to the line startNode = this.startNode = grid.getNodeAt(startX, startY) || {} Line line where is issue

Stevenbdl avatar Oct 20 '21 21:10 Stevenbdl