Type 'GeolocationOriginal' is not assignable to type 'Provider'. Type 'GeolocationOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactory
最佳答案
更改导入代码。
import { Geolocation } from '@ionic-native/geolocation';
到
import { Geolocation } from '@ionic-native/geolocation/ngx';
//对于 ionic 4
关于geolocation - ionic @ionic-native/geolocation 添加提供商问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55567581/