Hi guys
I got a weird issue
I have followed the instructions on
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
this error
"Module ‘“D:/Vme2/node_modules/ionic-native/dist/es5/index”’ has no exported member ‘AppPreferences’"

any ideas?


What version of Ionic Native do you have in your package.json?

It may be outdated.


“ionic-native”: “2.2.3”

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
"ionic-native": “2.9.0”,
and I still get the same error

Hi @FelManiac,

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