Closed Zerokk closed 6 years ago
I am having the same issue
@Zerokk Are you using ionic native version 5.0.0-beta.14 for geolocation? And in app.module when you import Geolocation does the import path end with /ngx like this import { Geolocation } from '@ionic-native/geolocation/ngx';?
You installed the wrong version. You have to install the beta release:
npm install @ionic-native/geolocation@beta
I have the same issue and the npm install @ionic-native/geolocation@beta doesn't work eithe. And I don't know what to do
I'm submitting a ... (check one with "x") [ x ] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior: When I try to import the Geolocation module in Ionic 4, the app totally breaks and throws the following error:
https://i.gyazo.com/68f0fcf217c4a4d9287387e74935d7f8.png
"Object(...) is not a function"
I've been trying to make various fixes that seemed to be around the web, like installing the 6th version of rxjs and rxjs-compat, but nothing seems to have any effect. Actually, I don't even need to use the module anywhere; the app breaks by just setting it up in the main module as a provider.
Expected behavior: Should be perfectly usable and not break the app... or at least, give a message developers can troubleshoot.
Steps to reproduce:
Other information: Ionic info: Ionic:
ionic (Ionic CLI) : 4.0.5 (C:\Users\zerok\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : @ionic/angular 4.0.0-beta.1 @angular-devkit/core : 0.7.2 @angular-devkit/schematics : 0.7.2 @angular/cli : 6.1.2 @ionic/ng-toolkit : 1.0.5 @ionic/schematics-angular : 1.0.4
Cordova:
cordova (Cordova CLI) : 8.0.0 Cordova Platforms : none
System:
NodeJS : v8.9.0 (C:\Program Files\nodejs\node.exe) npm : 5.5.1 OS : Windows 10
Environment:
ANDROID_HOME : not set
package.json: