When I run the “ionic serve” I’m getting this error message:
Uncaught TypeError: Object(…) is not a function
at index.js:685
at Object…/node_modules/@ionic-native/calendar/index.js (index.js:888)
at webpack_require (bootstrap:81)
at Object…/src/app/app.module.ts (app.component.ts:11)
at webpack_require (bootstrap:81)
at Object…/src/main.ts (environment.ts:15)
at webpack_require (bootstrap:81)
at Object.0 (main.ts:12)
at webpack_require (bootstrap:81)
at checkDeferredModules (bootstrap:43)
Getting a deeper look into it I saw that the problem is the missing cordova object.
__decorate([
Cordova(), < – Missing object
__metadata(“design:type”, Function),
__metadata(“design:paramtypes”, []),
__metadata(“design:returntype”, Promise)
], Calendar.prototype, “hasReadWritePermission”, null);
I notice that the cordova.js is not imported by index.html.
Is the Ionic 3 native plugins compatible with Ionic 4?
What can I do to solve this problem?
Thanks