I have a serious issue regarding ionic-native plugin. I have used ionic native camera plugin and ionic native barcode scanner plugin but I unable to use them .I am facing the same issue in both type of plugin. I have implemented it according to the documentation from https://ionicframework.com/docs/native/barcode-scanner/ and used the example from
https://dontpaniclabs.com/blog/post/2018/07/31/creating-a-barcode-scanner-app-with-ionic/!
My error is:
" Typescript Error
Argument of type ‘{ declarations: (typeof HomePage | typeof MyApp); imports: (ModuleWithProviders | typeof Browse…’ is not assignable to parameter of type ‘NgModule’. Types of property ‘providers’ are incompatible. Type ‘(typeof SplashScreen | BarcodeScannerOriginal | ToastOriginal | { provide: typeof ErrorHandler; u…’ is not assignable to type ‘Provider’. Type ‘typeof SplashScreen | BarcodeScannerOriginal | ToastOriginal | { provide: typeof ErrorHandler; us…’ is not assignable to type ‘Provider’. Type ‘BarcodeScannerOriginal’ is not assignable to type ‘Provider’. Type ‘BarcodeScannerOriginal’ is not assignable to type ‘ClassProvider’. Property ‘provide’ is missing in type ‘BarcodeScannerOriginal’.
every time i build it for android I am facing this error.