Ionic 4 Barcode Scanner Plugin Compile Error

confirmed that I found same error like @crodgers.

I also found this error from Chrome DevTools’ JavaScript console while running this app on Android:

Uncaught TypeError: Object(...) is not a function
    at vendor.js:64108
    at Object../node_modules/@ionic-native/barcode-scanner/index.js (vendor.js:64157)
    at __webpack_require__ (runtime.js:82)
    at Object../src/app/app.module.ts (main.js:156)
    at __webpack_require__ (runtime.js:82)
    at Object../src/main.ts (main.js:243)
    at __webpack_require__ (runtime.js:82)
    at Object.0 (main.js:265)
    at __webpack_require__ (runtime.js:82)
    at checkDeferredModules (runtime.js:44)

I don’t sure that should barcode scanner plugin do some update like SplashScreen did, according to this issue.

Noted that SplashScreen plugin seems got updated import statement:

import {SplashScreen} from '@ionic-native/splash-screen/ngx';

Ionic info:

Ionic:

   ionic (Ionic CLI)          : 4.1.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.5
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (0 plugins total)

System:

   Android SDK Tools : 26.1.1 (/Users/teerasejjiraphatchandej/Library/Android/sdk)
   ios-deploy        : 1.9.2
   ios-sim           : 6.1.2
   NodeJS            : v8.11.2 (/usr/local/bin/node)
   npm               : 6.4.0
   OS                : macOS High Sierra
   Xcode             : Xcode 9.4.1 Build version 9F2000