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

TypeError: PathFinder is not a constructor #92

Open prabaljainn opened 8 months ago

prabaljainn commented 8 months ago
Screenshot 2023-12-19 at 3 01 47 PM
prabaljainn commented 8 months ago

@perliedman

gbidka0 commented 6 months ago

Instead of: var PathFinder = require("geojson-path-finder") use: import PathFinder from "geojson-path-finder";

Animus-Development commented 4 months ago

Or const PathFinder = require("geojson-path-finder").default;