Hi guys
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
this error
"Module ‘“D:/Vme2/node_modules/ionic-native/dist/es5/index”’ has no exported member ‘AppPreferences’"
any ideas?
Thanks
             
            
              
              
              
            
            
           
          
            
            
              What version of Ionic Native do you have in your package.json?
It may be outdated.
P
             
            
              
              
              
            
            
           
          
            
            
              “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.
https://learnionic2.com/2017/03/12/whats-new-ionic-2-2-0-update/
             
            
              
              
              
            
            
           
          
            
            
              
$ 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