37

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?

user3471528
  • 3,013
  • 6
  • 36
  • 60

2 Answers2

108

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
Jonathan Bouloux
  • 1,106
  • 1
  • 7
  • 4
2

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