ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

[ng] ERROR Cannot find module 'rxjs-compat/Observable'. #174

Closed LiamKarlMitchell closed 5 years ago

LiamKarlMitchell commented 5 years ago

I'm submitting a ... (check one with "x")

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information: (run $> cordova plugin list)

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.5.0 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

Trying to follow the ionic example app for v4 or readme.md

Current behavior: ng error on serve/compile.

Expected behavior: Should see a map.

Related code, data or error log (please format your code or data):

[ng] ERROR in node_modules/@ionic-native/google-maps/index.d.ts(2,10): error TS2305: Module '"D:/Source/ionic-location-tracker/node_modules/rxjs/Observable"' has no exported member 'Observable'.[ng] node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.

Fix:

npm install --save rxjs-compat

Although I just realized I was following https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/README.md and that the installation instructions for ionic 4 require beta not latest.