Could not find cordova integration in the default project

user3471528 picture user3471528 · Feb 26, 2019 · Viewed 18.9k times · Source

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?

Answer

Jonathan Bouloux picture Jonathan Bouloux · Feb 26, 2019

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