不能在angular中使用geolib包

时间:2019-11-18 10:51:48

标签: angular geolocation

尽管导入了geolib却找不到。有什么我想念的吗?

import * as x from 'geolib';
type geolibType = typeof geolib;
const theGeolib = (x as any).default as geolibType;
export { theGeolib as geolib };

找不到名称'geolib'的错误是相同的。

程序包链接; https://www.npmjs.com/package/geolib

0 个答案:

没有答案
相关问题