I’m getting this after updating to 2.2.0:
Type 'Observable<Geoposition>' is not assignable to type 'Observable<Geoposition>'.
Property 'source' is but type 'Observable<T>' is not a class derived from 'Observable<T>'.
The guilty lines are:
private gpsWatch: Observable<Geoposition>;
this.gpsWatch = Geolocation.watchPosition(gpsOptions);
It seems fixed if you upgrade ionic-native
Do you mean modify package.json to “native-ionic”: “2.4.1”,?
Regards
"dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic/storage": "2.0.0",
"ionic-angular": "2.2.0",
"ionic-native": "2.8.1",
"ionicons": "3.0.0",
"rxjs": "5.0.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.4",
"typescript": "2.0.9"
}