Skip to content

Cordova.js will not be added on livereload with Angular 9 #184

@paulstelzer

Description

@paulstelzer

Summary

After updating an app to Angular 9, the cordova.js file will not be added anymore on ionic cordova run with livereload.

The app will start without problems, but will not have any cordova context

Steps to reproduce

  1. Run the following command on Angular 8 app with Ionic: ionic cordova run android -l

  2. The app is working as expected because it will add the cordova.js (can be checked by enter localhost:8100 and you see it)

  3. Upgrade the app to Angular 9 (ng update @angular/cli @angular/core --next=true)

  4. Run the same command as mentioned in step 1. The cordova.js will NOT be added anymore

At the moment I do not have a clue why this is happening, but tested on three apps after upgrading to Angular 9, so Angular seems to have something changed.

Workaround

For the moment, you have to add the cordova.js manually inside the angular.json, e.g. for Android. The same for the assets under platforms/android/platform_www

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions