I got the error when i was running the app on the browser .
ionic cordova run browser
The error was
Error: Unknown argument: platform [ERROR] An error occurred while running subprocess ng. ng.cmd run app:ionic-cordova-build --platform=browser exited with exit code 1. Re-running this command with the --verbose flag may provide more information.
My Configs
Ionic:
Ionic CLI : 6.13.1 Ionic Framework : @ionic/angular 6.1.13 @angular-devkit/build-angular : 14.0.5 @angular-devkit/schematics : 14.0.5 @angular/cli : 14.0.5 @ionic/angular-toolkit : 6.1.0
Cordova:
Cordova CLI : 11.0.0 Cordova Platforms : browser 6.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 4 other plugins)
Utility:
cordova-res : 0.15.4 native-run : 1.6.0
System:
Android SDK Tools : 26.1.1 NodeJS : v16.16.0 npm : 8.2.0 OS : Windows 10