There seems to be an issue with the npm package, basically the require of tinyqueue in dijkstra.js isn't working properly for me. When running the code I get the following error:
dijkstra.js:8 Uncaught TypeError: Queue is not a constructor
at module.exports (dijkstra.js:8)
at PathFinder.findPath (index.js:43)
at route (index.js:76)
at eval (index.js:107)
There seems to be an issue with the npm package, basically the require of
tinyqueue
indijkstra.js
isn't working properly for me. When running the code I get the following error: