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