Ionic Live Reload Missing Cordova.js

I updated to 4.0.1 today and my legacy v1 app started having issues with live reload. When I use live reload in the ios simulator cordova.js is missing. When I do not do live reload it works. I down graded ionic to 4.0.0 but still no luck.

Ionic:

ionic (Ionic CLI) : 4.0.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic1 1.3.1
@ionic/v1-toolkit : 1.0.0

Cordova:

cordova (Cordova CLI) : 7.1.0
Cordova Platforms : ios 4.5.5

System:

ios-deploy : 1.9.2
ios-sim : 7.0.0
NodeJS : v8.11.3 (/usr/local/bin/node)
npm : 6.2.0
OS : macOS High Sierra
Xcode : Xcode 9.0.1 Build version 9A1004

Environment:

ANDROID_HOME : not set

Have you checked https://github.com/ionic-team/ionic-cli/issues?

We are also experiencing the same with a Ionic v1 project that we can’t migrate to the latest version at the moment.

ionic 4.0.2
cordova 8.0.0

To replicate:

ionic start myApp blank --type=ionic1
cd myApp
ionic cordova emulate android --livereload

Open Chrome DevTools and cordova.js will be 404 and error with livereload.js.

I think it partly has to do with the fact that cordova.js is now copied to
platforms/android/app/src/main/assets/www

If you add
“documentRoot: platforms/android/app/src/main/assets/www” in ionic.config.json
it partly works (livereload.js randomly breaks), but none of the watched resources that gets changed are copied to platforms/android/app/src/main/assets/www.

Given the above, is there any way to get livereload working on Ionic v1 again?

Thank you.

Same problem here

ionic 4.0.2
cordova 8.0.0

Both please post your ionic info.
Did you check the Github issues and file a report if none is present yet?

I haven’t checked Github for a issue yet.

Please let me know if I can provide any additional info or if I can make a change to my environment to get this working.

C:\temp\myApp>ionic info
[WARN] Error with .\www\lib\ionic\version.json file: FILE_NOT_FOUND, trying .\bower.json.

Ionic:

   ionic (Ionic CLI) : 4.0.2 (C:\Users\henlocon\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework   : ionic1 1.3.4
   @ionic/v1-toolkit : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0

System:

   Android SDK Tools : 26.1.1
   NodeJS            : v10.7.0 (C:\Program Files\nodejs\node.exe)
   npm               : 6.1.0
   OS                : Windows 10

Environment:

   ANDROID_HOME : C:\Users\henlocon\AppData\Local\Android\sdk

See newly created issue: https://github.com/ionic-team/ionic-cli/issues/3461

1 Like