I have found the solution, IonicNativePlugin was added in newer version of ionic-native/core, so I had to uninstall this one and install the newest one. This saved me a lot of time. I just did a
npm uninstall --save @ionic-native/core
npm install --save @ionic-native/core@latest
OR
ionic plugin rm cordova-plugin-network-information
ionic plugin add –save cordova-plugin-network-information
Now check code by build again in your project.
npm uninstall --save @ionic-native/core
npm install --save @ionic-native/core@latest
OR
Uninstall and add again plugin :
ionic plugin rm cordova-plugin-network-information
ionic plugin add –save cordova-plugin-network-information
Now check code by build again in your project.
No comments:
Post a Comment