brook18
brook18

Reputation: 189

ionic 5 @ionic-native/geolocation add provider issue

I still encoumter this error despite follow the thread

ionic @ionic-native/geolocation add provider issue

Type 'GeolocationOriginal' is not assignable to type 'Provider'. Type 'GeolocationOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactoryts(2322)

My code has as below.

import { Geolocation } from '@ionic-native/geolocation/ngx';

Upvotes: 1

Views: 395

Answers (1)

brook18
brook18

Reputation: 189

The above error flagged from app.module.ts.

I manage to solve this by Added import script in app.component.ts

import { Geolocation } from '@ionic-native/geolocation/ngx';

Upvotes: 1

Related Questions