Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An unhandled exception occurred: Project target does not exist

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

like image 759
Mustafa Youssef Avatar asked Nov 03 '25 12:11

Mustafa Youssef


1 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.

like image 113
Cedric Ipkiss Avatar answered Nov 05 '25 03:11

Cedric Ipkiss



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!