Ionic 5 problem ng subprocess with angular 14

I have this problem. When I compile an application and run the command ionic cordova prepare android i see this error:

Error: Unknown argument: platform [ERROR] An error occurred while running subprocess ng.   ng.cmd run app:ionic-cordova-build --platform=android exited with exit code 1. Re-running this command with the --verbose flag may provide more information.

My Config: Angular CLI: 14.0.2 Node: 16.13.0 Package Manager: npm 8.1.0 OS: win32 x64 

If i lunch the same command with this config: 
Angular CLI: 13.0.4 Node: 16.13.0 Package Manager: npm 8.1.0 OS: win32 x64 
the project work correctly

Angular 14 support was added in angular 6.1.9

Ok how can I solve the problem? a thousand thanks

Two options:

  1. Update Ionic to that Version
  2. Don’t update to Angular 14 :smiley:

You definitively should update to Ionic 6, if you use Angular 14 or not. Check the guide here: Upgrading to Ionic 6 | Ionic Documentation