Hi,
Ionic CLI : 6.10.1 (/usr/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.2.3
@angular-devkit/build-angular : 0.901.10
@angular-devkit/schematics : 9.1.10
@angular/cli : 9.1.10
@ionic/angular-toolkit : 2.2.0
I tried installing ionic-native local-notifications. The installing process does not give any error. I did:
ionic cordova plugin add cordova-plugin-local-notification
npm install @ionic-native/local-notifications
In my app.module:
import {LocalNotifications} from '@ionic-native/local-notifications/ngx'
providers: [
LocalNotifications,
(....here is more.....)
]
On ng serve I get:
ERROR in src/app/app.module.ts:92:9 - error TS2322: Type 'LocalNotificationsOriginal' is not assignable to type 'Provider'.
Type 'LocalNotificationsOriginal' is missing the following properties from type 'any[]': length, pop, push, concat, and 26 more.
92 LocalNotifications,
I tried uninstalling local-notifications, deleting folder from nodes_module and installing an older version of local-notifications. But that delivered the same errors.