Cordova.js not loaded in livereload

Hi, running Ionic cordova run android -l gives Cordova is not available message when using plugins. Seems that cordova.js file is not loaded when using livereload. It’s a well know problem in Ionic in the past years, i’ve found many threads on internet but they are old and their solutions don’t work. Does anyone have the same problem?
Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.2.1 (/home/pablo/.nvm/versions/node/v8.12.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.13
   @angular-devkit/build-angular : 0.8.6
   @angular-devkit/schematics    : 0.8.6
   @angular/cli                  : 6.2.6
   @ionic/angular-toolkit        : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.1, browser 5.0.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 4 other plugins)

System:

   Android SDK Tools : 26.1.1 (/home/pablo/Android/Sdk)
   NodeJS            : v8.12.0 (/home/pablo/.nvm/versions/node/v8.12.0/bin/node)
   npm               : 6.4.1
   OS                : Linux 4.18

New Ionic cli version 4.3.0 solved the problem

1 Like