[Solved] Ionic-Native Calendar import Error

Hi Guys,
Im trying to import the native Calendar but i’m getting the error that the ‘IonicNativePlugin’ couldn’t be imported from ‘@ionic-native/core’ as shown in the screenshot below

I have used

$ ionic plugin add cordova-plugin-calendar
$ npm install --save @ionic-native/calendar

and imported it at my app.module.ts file and registered it also in the providers arrray
import {Calendar} from '@ionic-native/calendar'

PS. I have other native plugins installed in the same way and they are working perfectly fine.


My dependencies are:

"dependencies": {
    "@angular/common": "4.0.3",
    "@angular/compiler": "4.0.3",
    "@angular/compiler-cli": "4.0.3",
    "@angular/core": "4.0.3",
    "@angular/forms": "4.0.3",
    "@angular/http": "4.0.3",
    "@angular/platform-browser": "4.0.3",
    "@angular/platform-browser-dynamic": "4.0.3",
    "@ionic-native/calendar": "^3.5.0",
    "@ionic-native/call-number": "^3.5.0",
    "@ionic-native/camera": "^3.5.0",
    "@ionic-native/core": "^3.5.0",
    "@ionic-native/keyboard": "^3.5.0",
    "@ionic-native/photo-library": "^3.5.0",
    "@ionic-native/splash-screen": "3.5.0",
    "@ionic-native/status-bar": "3.5.0",
    "@ionic/storage": "2.0.1",
    "angularfire2": "^2.0.0-beta.8",
    "chart.js": "^2.5.0",
    "firebase": "^3.7.6",
    "ionic-angular": "3.0.1",
    "ionicons": "3.0.0",
    "moment": "^2.18.1",
    "rxjs": "5.3.0",
    "sw-toolbox": "3.6.0",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^1.3.4",
    "typescript": "2.2.2"
  }

Same problem same solution, run ```npm update`` update your plugin’s versions.
https://forum.ionicframework.com/t/ionicnativeplugin-missing-from-ionic-native-core/88019/3

1 Like

Yup I just solved by updating @ionic-native/core to 3.6.1, thank you