Ionic 3 error install native plugin after Ionic 4 release

前端 未结 4 1734
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:34

    Goto https://www.npmjs.com.

    Search for the ionic-native package that you want to install.

    In your case, its 'ionic-native-storage'. Check the versions and choose the one which was released before the Ionic 4 Beta release and then install the appropriate version using the same command.

    ionic cordova plugin add cordova-plugin-nativestorage@"====add your version here===="
    

    After that the plugin will work the same way as it did. No need to fiddle with adding 'ngx' at the end of the path.

提交回复
热议问题