Ionic 3 error install native plugin after Ionic 4 release

前端 未结 4 1733
Happy的楠姐
Happy的楠姐 2021-01-03 02:04

I get a problem using native plugin ionic 3 when install Native Store is success, but when I try to add in app module, the text editor show a red line and when I try to run

4条回答
  •  佛祖请我去吃肉
    2021-01-03 02:35

    All your @ionic-native modules now need /ngx at the end for Angular projects. Just fix it like this:

    import { NativeStorage } from '@ionic-native/native-storage/ngx';
    

    Apply this to every @ionic-native plugin/module.

提交回复
热议问题