Running livereload (-l) gives version error

I’m trying to run an app in an android emulator using cordova (it’s an old app), I would prefer to run it with -l so that I could but I’m getting this error: This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,

This command works fine, but it’s obviously not in livereload mode:

> ionic cordova emulate android
> ng run app:ionic-cordova-build --platform=android
✔ Browser application bundle generation complete.
✔ Copying assets complete.
✔ Index html generation complete.

The same command with -l gives me the above compatible error.

> ionic cordova emulate android -csl
> ng run app:ionic-cordova-serve --host=localhost --port=8100 --platform=android
[ng] This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,
[ng] but Angular version 12.2.16 was found instead.
[ng]
[ng] Please visit the link below to find instructions on how to update Angular.
[ng] https://update.angular.io/
[ng]

[ERROR] ng has unexpectedly closed (exit code 3).

Any idea what might be causing this? I tried upgrading/downgrading versions but it doesn’t seem to help. The app has a lot of plugins and every time I move from 1 version to another things start failing, I would rather leave it the way it is now

Info details:

> ionic info

Ionic:

   Ionic CLI                     : 6.20.0 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.1.11
   @angular-devkit/build-angular : 12.2.16
   @angular-devkit/schematics    : 12.2.16
   @angular/cli                  : 12.2.17
   @ionic/angular-toolkit        : 6.1.0

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : android 10.1.2
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 9 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : 1.6.0

System:

   Android SDK Tools : 26.1.1 (/Users/solomon/Library/Android/sdk)
   NodeJS            : v14.19.3 (/usr/local/Cellar/node@14/14.19.3/bin/node)
   npm               : 6.14.17
   OS                : macOS Monterey
   Xcode             : Xcode 13.1 Build version 13A1030d

Hi !,

Same here when i update Angular 13 to 14 and Ionic, the -l gives version error for me

[ng] This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,
[ng] but Angular version 14.0.3 was found instead.
[ng]
[ng] Please visit the link below to find instructions on how to update Angular.
[ng] https://update.angular.io/
[ng]

[ERROR] ng has unexpectedly closed (exit code 3).

Any idea ?

I ran into the same problem and solved it this way:

ionic start NAME --cordova --type=angular --no-deps
This will not install anything and so also not Angular 14.

Change package.json and replace all 14.0.0 with 13.0.0

npm install typescript@">=4.4.2 and <4.7.0" --save-dev 
npm install @ionic/cordova-builders
ionic repair

TypeScript version is too high on new install,
cordova-builders will be missing
and ionic repair will install all missing packages.