I got a weird issue
I have followed the instructions on http://ionicframework.com/docs/v2/native/apppreferences/
I have added the plugin successfully using
"ionic plugin add cordova-plugin-app-preferences"
but when I try importing AppPreferences into one of my componments I get
"Module ‘“D:/Vme2/node_modules/ionic-native/dist/es5/index”’ has no exported member ‘AppPreferences’"
What version of Ionic Native do you have in your package.json?
It may be outdated.
where do I see the most recent version?
I’d suggest updating your project to Ionic 2.2.0, it may fix the issue. Especially with a newer version of Ionic Native.
$ npm v ionic-native versions
Thanks for the reply
I have updated to 2.2.0 and than I updated ionic native to
and I still get the same error
I’d suggest upgrading your Ionic Native to 3.1.1. There’s been a change in how plugins are stored within the repo which results significantly smaller bundle sizes, greater testibility, and more.
You should be able to fix your AppPreferences issue by importing it like I have in this video:
Sweet it works… thanks a lot mate