projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.46k stars 1.16k forks source link

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

Open Stevenbdl opened 2 years ago

Stevenbdl commented 2 years ago

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