Ionic 2 Photo Library not working

hy guys, I just added the native photo library of ionic 2 to my project through following commands:

$ ionic plugin add cordova-plugin-photo-library --variable PHOTO_LIBRARY_USAGE_DESCRIPTION=“To choose photos”
$ npm install --save @ionic-native/photo-library

However now I am not able to build for ios. Following error occurs on ionic serve and also on ionic build ios

Module ‘"/Volumes/El Capitan/IonicApp/ionic2/TrendoBK/node_modules/ionic-native/dist/es5/index"’ has no exported member ‘PhotoLibrary’

Module ‘"/Volumes/El Capitan/IonicApp/ionic2/TrendoBK/node_modules/ionic-native/dist/es5/index"’ has no
exported member ‘LibraryItem’

Anybody facing the same issue or solved the issue, please let me know.
Thanks

Looks like you’re trying to pull the exports from ionic-native instead of @ionic-native/photo-library

I ran the following command in terminal and now it is not giving me the above errors

npm install @ionic-native/core --save

Now I am able to serve or build my app… but facing this error :frowning:
EXCEPTION: Error in ./MyApp class MyApp - inline template:51:0 caused by: No provider for PhotoLibrary!

You need to add PhotoLibrary to the providers list in your @NgModule.

Yes indeed it worked for me… Thanks