ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
193 stars 178 forks source link

ionic4 install @ionic-native/keyboard is error #49

Closed lwh2015 closed 5 years ago

lwh2015 commented 5 years ago

[ng] ERROR in node_modules/@ionic-native/keyboard/index.d.ts(2,10): error TS2305: Module '"E:/myWork/myBlogApp/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'.

collindutter commented 5 years ago

For all native plugins on Ionic 4 you need to install the beta version. npm i @ionic-native/keyboard@beta Then, when importing the provider in your app.module, import it from the ngx folder like so: import { Keyboard } from '@ionic-native/keyboard/ngx';

Hope this helps!

lwh2015 commented 5 years ago

For all native plugins on Ionic 4 you need to install the beta version. npm i @ionic-native/keyboard@beta Then, when importing the provider in your app.module, import it from the ngx folder like so: import { Keyboard } from '@ionic-native/keyboard/ngx';

Hope this helps!

OK,Thanks

almeidacavalcante commented 5 years ago

For all native plugins on Ionic 4 you need to install the beta version. npm i @ionic-native/keyboard@beta Then, when importing the provider in your app.module, import it from the ngx folder like so: import { Keyboard } from '@ionic-native/keyboard/ngx';

Hope this helps!

Works pretty fine now, Thank you

jcesarmobile commented 5 years ago

closing as it was fixed by updating @ionic-native/keyboard