conveyal / browsochrones

Create isochrones and accessibility images in the browser
MIT License
6 stars 2 forks source link

Got "Cannot convert undefined or null to object " when call new Browsochrones() #70

Closed Xin-Zheng closed 7 years ago

Xin-Zheng commented 7 years ago

The following is the detailed error:

Uncaught (in promise) TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at module.exports (http://localhost:8080/js/bundle.js:115774:29) at Browsochrones.WebWorkerPromiseInterface (http://localhost:8080/js/bundle.js:115620:47) at new Browsochrones (http://localhost:8080/js/bundle.js:114671:87) at ScenarioMap._callee$ (http://localhost:8080/js/bundle.js:114226:34) at tryCatch (http://localhost:8080/js/bundle.js:15826:41) at Generator.invoke [as _invoke] (http://localhost:8080/js/bundle.js:16117:23) at Generator.prototype.(anonymous function) [as next] (http://localhost:8080/js/bundle.js:15878:22) at step (http://localhost:8080/js/bundle.js:114135:192) at http://localhost:8080/js/bundle.js:114135:438

My code: import Browsochrones from 'browsochrones' const browsochrones = new Browsochrones();