Geolocation cordova

I’m implementing in the app the geolocation but it gives this error

Uncaught TypeError: Object(…) is not a function
at vendor.js:66971
at Object…/node_modules/@ionic-native/geolocation/index.js (vendor.js:67036)
at webpack_require (runtime.js:82)
at Object…/src/app/app.module.ts (main.js:214)
at webpack_require (runtime.js:82)
at Object…/src/main.ts (main.js:438)
at webpack_require (runtime.js:82)
at Object.0 (main.js:460)
at webpack_require (runtime.js:82)
at checkDeferredModules (runtime.js:44)

Ionic:

ionic (Ionic CLI) : 4.1.1 (/usr/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.3
@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 : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.0, (and 5 other plugins)

System:

Android SDK Tools : 26.1.1 (/home/eduardo/Android/Sdk)
NodeJS : v8.11.4 (/usr/bin/node)
npm : 6.4.1
OS : Linux 4.15