haversine-geolocation icon indicating copy to clipboard operation
haversine-geolocation copied to clipboard

Getting error on import to Node.JS

Open AnkitaSharma88 opened this issue 3 years ago • 1 comments

Hi, Using haversine-geolocation as following: const { HaversineGeolocation} = require('haversine-geolocation');

Getting the following error on server start: ReferenceError: window is not defined at Object. (XXXXXXX\node_modules\haversine-geolocation\dist\build.js:1:224)

AnkitaSharma88 avatar Apr 09 '21 14:04 AnkitaSharma88