I'm encountering an issue with some providers in my app.module.ts file. Specifically, when trying to use the DatePicker component, I'm getting this error message:
Type 'DatePickerOriginal' is not assignable to type 'Provider'.
Type 'DatePickerOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactoryts(2322)
This is how I'm importing it:
import { DatePicker } from '@ionic-native/date-picker/ngx';
Information about my Ionic setup:
Ionic CLI : 5.4.16 Ionic Framework : ionic-angular 3.9.10 @ionic/app-scripts : 3.2.4
Cordova details:
Cordova CLI : 8.1.2 ([email protected]) Cordova Platforms : ios 4.5.5 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, (and 19 other plugins)
Additional info:
cordova-res : not installed native-run : not installed
System configuration:
NodeJS : v14.15.4 (/usr/local/bin/node) npm : 6.14.10 OS : macOS Catalina