-
Notifications
You must be signed in to change notification settings - Fork 32
Description
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
-
Run the following command on Angular 8 app with Ionic:
ionic cordova run android -l -
The app is working as expected because it will add the cordova.js (can be checked by enter localhost:8100 and you see it)
-
Upgrade the app to Angular 9 (
ng update @angular/cli @angular/core --next=true) -
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