# Running livereload (-l) gives version error

**URL:** <https://forum.ionicframework.com/t/running-livereload-l-gives-version-error/224471>\
**Category:** Ionic Angular\
**Created:** [June 23, 2022, 4:11am UTC](https://forum.ionicframework.com/t/running-livereload-l-gives-version-error/224471 "2022-06-23T04:11:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javasol](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@javasol](https://forum.ionicframework.com/u/javasol)\
**Post date:** [June 23, 2022, 4:11am UTC](https://forum.ionicframework.com/t/running-livereload-l-gives-version-error/224471/1 "2022-06-23T04:11:11Z")

</div>

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:

```auto
> 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.

```auto
> 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:

```auto
> 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

```

---

<div class="post-metadata">

**Author:** ![AC-DEV-WEB](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@AC-DEV-WEB](https://forum.ionicframework.com/u/AC-DEV-WEB)\
**Post date:** [June 23, 2022, 6:51am UTC](https://forum.ionicframework.com/t/running-livereload-l-gives-version-error/224471/2 "2022-06-23T06:51:21Z")

</div>

Hi !,

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

```auto
[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 ?

---

<div class="post-metadata">

**Author:** ![wunschradio](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@wunschradio](https://forum.ionicframework.com/u/wunschradio)\
**Post date:** [July 12, 2022, 9:52am UTC](https://forum.ionicframework.com/t/running-livereload-l-gives-version-error/224471/3 "2022-07-12T09:52:31Z")

</div>

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

```auto
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.
