Error using Ionic Devapp on Ionic version 4.10.3

1k Views Asked by At

I'm trying to use the devapp App on android but I'm getting the error

ng run app:ionic-cordova-serve --host=0.0.0.0 --port=8100 --cordova-mock [ng] Unknown option: '--cordova-mock'

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

    The Ionic CLI will exit. Please check any output above for error details.

Any ideas? I'm using ionic version 4.10.3

2

There are 2 best solutions below

2
On BEST ANSWER

Install lastest @ionic/angular-toolkit

0
On

Try this if it doesn't work

npm install -g @angular/cli