I am developing a sma pwa and want to use a barcode Scanner, following this documenatation https://beta.ionicframework.com/docs/native/barcode-scanner/, I get this error on chrome:
Uncaught TypeError: Object(...) is not a function at vendor.js:90632 at Module../node_modules/@ionic-native/barcode-scanner/index.js (vendor.js:90681)
I am working with ionic 4.6.0, Angular 7.0.4 with ionic build and ionic serve it builds,but in the browser get the error, ionic build --prod gives me:
ERROR in ../@ionic-native/barcode-scanner/index.ts(104,2): Error during template compile of 'BarcodeScanner' Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler in 'Plugin' 'Plugin' references 'Plugin' 'Plugin' is not initialized at ../@ionic-native/core/decorators/interfaces.ts(100,22).
I am stuck.