user3471528
user3471528

Reputation: 3053

Could not find cordova integration in the default project

following the official getting started tutorial I get the following error when I try to deploy the application in my phone using this command: ionic serve --devapp (it works on browser):

[ERROR] Could not find cordova integration in the default project.

I get this error both on Windows and MacOS. I'm using Node 6.4.1 and Ionic CLI 4.10.3

Does the official tutorial missing something?

Upvotes: 37

Views: 26260

Answers (3)

rangholiya nikunj
rangholiya nikunj

Reputation: 133

The accepted answer is 100% correct follow this step :

1. ionic start --type=angular

2. ionic integrations disable capacitor

    2.1 delete - node , platform 
    
3. ng add @ionic/cordova-builders

4. ionic cordova build android

Upvotes: 0

Muzingaye Moyo
Muzingaye Moyo

Reputation: 83

The accepted answer is 100% correct .

But the reason why this occurred for me was that somehow the default was capacitor and not cordova.

so first i ran

ionic integrations disable capacitor

then ran

ionic cordova prepare

which solved my issue

Upvotes: 2

Jonathan Bouloux
Jonathan Bouloux

Reputation: 1116

I had the same issue. In fact, with the default project, you have to copy the cordova assets to prepare the native build for mobile. You can find more info here : Ionic documentation

Try this :

ionic cordova prepare

And then go again with :

ionic serve --devapp

Upvotes: 108

Related Questions