Search code examples
ionic-frameworkionic4

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?


Solution

  • 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