I'm using GeolocationPositionError
which should be built in, but es-lint is telling me it's not defined. Webstorm isn't helping me import it. Where do I import this from, or is there another issue here?
The code works:
} catch (error) {
console.log(error);
if (error instanceof GeolocationPositionError) {
console.log("Location access was denied");
return;
} else {
setTimeout(() => {
console.log("retrying");
dispatch(fetchUserLocation());
}, 2000);
}
}