Closed emerabet closed 1 year ago
Hello,
following the indications of the readme I get the following error message. TypeError: Geonames is not a function The lib usage changed ?
TypeError: Geonames is not a function
const { Geonames } = require('geonames.js') this.geoNameClient = Geonames({ username: 'xxxx', lan: 'en', encoding: 'JSON' });
Thanks!
I got it working by removing the {}
const Geonames = require('geonames.js')
Hello,
following the indications of the readme I get the following error message.
TypeError: Geonames is not a function
The lib usage changed ?Thanks!