Ionic 3 error install native plugin after Ionic 4 release

不羁的心 提交于 2019-11-30 16:05:44

Try To Find .. Second Last Previous Version of Plugin & Append While Adding Plugin

npm install @ionic-native/native-storage@4.19.0

Here... Latest Version is 5.0.0 So Add @4.19.0 Please Don't Make Assumption Based On
Number Go In Repo or npm link try to find our previous version then append.

Then do your All Step Regularly.

Thanks

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!