I am getting below error when I am trying to run ionic cordova prepare android command on Mac.
ng run app:ionic-cordova-build --platform=android
An unhandled exception occurred: Project target does not exist.
See "/private/tmp/ng-ga2aoC/angular-errors.log" for further details.
[ERROR] An error occurred while running subprocess ng.
ng run app:ionic-cordova-build --platform=android exited with exit code
127.
Re-running this command with the --verbose flag may provide more
information.
If you run this command: ng add @ionic/cordova-builders it should add the required builders that are missing from the angular.json file generated by the Ionic CLI.
You saved my day bro @jwt02180 , Good job, I was frustrated to find a solution for my new app using the latest versions of ionic, Cordova and angular and nothing worked but yours, how did you know that?
I had same problem and with this command: ng add @ionic/cordova-builders the problem solved but another problem happened after the apk file created a white page comes up!!! with this error Uncaught SyntaxError: Unexpected token .