perliedman / geojson-path-finder

Find shortest path through a network of GeoJSON
https://www.liedman.net/geojson-path-finder/
ISC License
300 stars 86 forks source link

Getting error saying Queue is not constructor. #78

Open Btpatil opened 1 year ago

Btpatil commented 1 year ago

how exactly the geojson is required for this to work. it wasnt explained in the readme section. i am Getting error saying Queue is not constructor.from dijkstra.js file. if you can help me with this, how exactly i have to proceed with the paathfinder.

perliedman commented 1 year ago

The issue is with how webpack handles bundling of mixed CommonJS and ESM dependencies, not with geojson-path-finder. Please try the new version 2.0.0 of geojson-path-finder and see if it helps.