# Ionic-cli, livereload and device

**URL:** <https://forum.ionicframework.com/t/ionic-cli-livereload-and-device/73953>\
**Category:** ionic-v3\
**Created:** [December 21, 2016, 7:32am UTC](https://forum.ionicframework.com/t/ionic-cli-livereload-and-device/73953 "2016-12-21T07:32:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hexbooster](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hexbooster](https://forum.ionicframework.com/u/hexbooster)\
**Post date:** [December 21, 2016, 7:32am UTC](https://forum.ionicframework.com/t/ionic-cli-livereload-and-device/73953/1 "2016-12-21T07:32:27Z")

</div>

Hello!

I’m using ionic 2 but can’t use latest versions 2.1.1x of ionic-cli because of when run command **ionic run android --device -lc** client tells that cordova not found and _Uncaught (in promise) runtime error_ message displays on device.

Plugins are installed, and code wrapped into **this.platform.ready()**.

Project running ok on 2.1.8 (in separate window i run command **npm run watch** because of livereload issue).

Already posted this issue on [https://github.com/driftyco/ionic-cli/issues/1773](https://github.com/driftyco/ionic-cli/issues/1773), no feedback. Please, help!

Here is the terminal output:

```
[10:28:37] console.log: Angular 2 is running in the development mode. Call enableProdMode() to enable the production 
            mode. 
[10:28:37] error opening ws message: {"category":"console","type":"info","data":["Ionic Storage 
            driver:","asyncStorage"]} 
[10:28:37] console.warn: Native: tried calling StatusBar.overlaysWebView, but Cordova is not available. Make sure to 
            include cordova.js or run in a device/simulator 
[10:28:37] console.warn: Native: tried calling Splashscreen.hide, but Cordova is not available. Make sure to include 
            cordova.js or run in a device/simulator 
[10:28:37] console.warn: Native: tried accessing the GoogleMap plugin but it's not installed. 
[10:28:37] console.warn: Install the GoogleMap plugin: 'ionic plugin add plugin.google.maps.Map' 
[10:28:37] console.error: EXCEPTION: Uncaught (in promise): [object Object] 
[10:28:37] console.error: ORIGINAL STACKTRACE: 
[10:28:37] console.error: Error: Uncaught (in promise): [object Object] at s 
            (http://192.168.88.112:8000/build/polyfills.js:3:8568) at 
            http://192.168.88.112:8000/build/polyfills.js:3:8940 at t.invokeTask 
            (http://192.168.88.112:8000/build/polyfills.js:3:14051) at Object.onInvokeTask 
            (/Users/admin/desktop/ionic/node_modules/@angular/core/src/zone/ng_zone.js:229:37) at t.invokeTask 
            (http://192.168.88.112:8000/build/polyfills.js:3:13987) at e.runTask 
            (http://192.168.88.112:8000/build/polyfills.js:3:11411) at i 
            (http://192.168.88.112:8000/build/polyfills.js:3:8028) at HTMLDocument.invoke 
            (http://192.168.88.112:8000/build/polyfills.js:3:15204) 
[10:28:37] console.error: EXCEPTION: Uncaught (in promise): [object Object] 
[10:28:37] console.error: ORIGINAL STACKTRACE: 
[10:28:37] console.error: Error: Uncaught (in promise): [object Object] at s 
            (http://192.168.88.112:8000/build/polyfills.js:3:8568) at s 
            (http://192.168.88.112:8000/build/polyfills.js:3:8391) at 
            http://192.168.88.112:8000/build/polyfills.js:3:8902 at t.invokeTask 
            (http://192.168.88.112:8000/build/polyfills.js:3:14051) at Object.onInvokeTask 
            (/Users/admin/desktop/ionic/node_modules/@angular/core/src/zone/ng_zone.js:229:37) at t.invokeTask 
            (http://192.168.88.112:8000/build/polyfills.js:3:13987) at e.runTask 
            (http://192.168.88.112:8000/build/polyfills.js:3:11411) at i 
            (http://192.168.88.112:8000/build/polyfills.js:3:8028) at HTMLDocument.invoke 
            (http://192.168.88.112:8000/build/polyfills.js:3:15204) 
[10:28:37] error opening ws message: {"category":"console","type":"log","data":["Error getting location","{}"]} 

```

Configuration:

```
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: 1.9.0
ios-sim version: 5.0.4
OS: OS X El Capitan
Node Version: v6.6.0
Xcode version: Xcode 8.1 Build version 8B62
```

---

<div class="post-metadata">

**Author:** ![hexbooster](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hexbooster](https://forum.ionicframework.com/u/hexbooster)\
**Post date:** [December 22, 2016, 3:29pm UTC](https://forum.ionicframework.com/t/ionic-cli-livereload-and-device/73953/2 "2016-12-22T15:29:09Z")

</div>

My solution is completely uninstalling current and installing latest version of ionic, then create a blank ionic project and accurately move files from old project to new.

---

<div class="post-metadata">

**Author:** ![MaxFot](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@MaxFot](https://forum.ionicframework.com/u/MaxFot)\
**Post date:** [December 22, 2016, 9:28pm UTC](https://forum.ionicframework.com/t/ionic-cli-livereload-and-device/73953/3 "2016-12-22T21:28:30Z")

</div>

I already replied to the same issue on github. But, just for the reference of future readers, you can check this out:

> <https://github.com/ionic-team/ionic-app-scripts/issues/515>
