nchaulet / node-geocoder

nodejs geocoding library
http://nchaulet.github.io/node-geocoder/
MIT License
931 stars 214 forks source link

HttpsAdapter is not a constructor #261

Closed uythoang closed 5 years ago

uythoang commented 5 years ago

I get "HttpsAdapter is not a constructor" when I try to do the following:

import HttpsAdapter from "node-geocoder/lib/httpadapter/httpsadapter";

const httpAdapter = new HttpsAdapter(undefined, {
    headers: {
        referer: ctx.headers.referer,
    },
});
uythoang commented 5 years ago

Never mind, it's working now