Uncaught TypeError: Object(...) is not a function at VideoEditor.transcodeVideo

Hello I have this issue when I try to use the VideoEditor plugin in my Ionic project:

Error in Success callbackId: File1270464274 : TypeError: Object(...) is not a function
cordova.js:311 Uncaught TypeError: Object(...) is not a function
    at VideoEditor.transcodeVideo (vendor.js:104975)
    at main.js:5087
    at success (plugins/cordova-plugin-file/www/Entry.js:73)
    at Object.callbackFromNative (cordova.js:291)
    at <anonymous>:1:9

I installed the plugin with the instructions in https://ionicframework.com/docs/native/video-editor

This is the info of my project:

Ionic:

   ionic (Ionic CLI)  : 4.8.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.10

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.1.0, browser 5.0.4, ios 4.5.5

I’m using the plugin this way:

import { VideoEditor } from '@ionic-native/video-editor/ngx';
...
let options = {
    fileUri             : videoUrl,
    outputFileName      : entry.name + '.mp4',
    outputFileType      : this.videoEditor.OutputFileType.MPEG4,
    maintainAspectRatio : true,
    width               : 480,
    height              : 360,
    videoBitrate        : 100000
};

this.videoEditor.transcodeVideo(options).then((pathTranscodedVideo: string) => {
    console.log(pathTranscodedVideo)
})
.catch(() => {
    console.log('error')
});

I removed and re-added the plugin and it’s not working, any idea of what could be the issue?
Thanks in advance

The answer here: https://stackoverflow.com/questions/54467262/getting-uncaught-in-promise-typeerror-object-is-not-a-function-error made the trick.