PathFinding.js
PathFinding.js copied to clipboard
TypeError: Cannot read properties of undefined (reading 'x')
Line issue:
endX = this.endNode.x,
Line where is issue
My solution:
endX = this.endNode?.x, endY = this.endNode?.y
For more details
@Stevenbdl some code would help
That error is probably caused by the hack that you described in the other issue that you opened #199
Either way the root issue likely on your end. (see my comment on the other issue)