runk / node-maxmind

Maxmind GEO Lookup
MIT License
606 stars 62 forks source link

error - (0 , assert_1.default) is not a function #811

Closed matiasfour closed 5 months ago

matiasfour commented 7 months ago

This code: const lookup = await maxmind.open<CityResponse>('/opt/app/GeoLite2-City.mmdb'); is causing this error:

error - ../../node_modules/mmdb-lib/lib/decoder.js (8:0) @ error - (0 , assert_1.default) is not a function

image

I have maxmind latest version installed.

runk commented 7 months ago

Do you attempt to use it in browser?