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