An unhandled exception occurred: Project target does not exist

Viewed 3855

I have a problem when I write:

ionic cordova prepare android،

Knowing that this is happening with every new project I create. Please help.

Screenshot

2 Answers

The problem is caused by required builders that are missing from the angular.json file. To install those builders, run:

ng add @ionic/cordova-builders

You should get an output similar to this:

enter image description here

After that, go ahead and run your build.

Related