ionic 4 application:-
I use ionic-native/camera in my application but got this issue:-
TypeError: Object(_ionic_native_core__WEBPACK_IMPORTED_MODULE_1__["Cordova"]) is not a function. (In 'Object(_ionic_native_core__WEBPACK_IMPORTED_MODULE_1__["Cordova"])
Make sure you are installing the beta version of ionic-native/camera as that will contain angular compatibility npm install --save @ionic-native/camera@beta. Also, make sure to add the plugin into your app.module.ts. I believe this is an issue with the docs not specifying what version to get.
import { Camera } from '@ionic-native/camera/ngx';
providers: [ Camera ]
tank your
Most helpful comment
Make sure you are installing the beta version of ionic-native/camera as that will contain angular compatibility
npm install --save @ionic-native/camera@beta. Also, make sure to add the plugin into your app.module.ts. I believe this is an issue with the docs not specifying what version to get.