xxx = any native component
fix the issues, with:npm i -s @ionic-native/xxx@5.0.0-beta.14
NOTE: if you are using ANGULAR 6 in you project you must import ionic component + /ngx
, for example:
- Use Angular 6
import { xxx } from '@ionic-native/xxx/ngx';
import { file } from '@ionic-native/file/ngx';
- Without Angular
import { xxx } from '@ionic-native/xxx';
import { file } from '@ionic-native/file';
Lastly check the @ionic-native/xxx
versions on npm:
https://www.npmjs.com/package/@ionic-native/xxx
https://www.npmjs.com/package/@ionic-native/file
you have to use the version 5.x.x for ANGULAR and 4.x.x ANGULAR-IONIC.
Check your project type on your ionic.config.json
file
Example in Facebook Authentication
import { Facebook } from '@ionic-native/facebook/ngx';
add the same in Providers Array Facebook