Ionic-v1 livereload not working


#1

Hi guys, I have a problem. Livereload doesn’t seem to work for my ionic-v1 project. I mean that when I modify any code the modifications are not reflected to the app. It used to work in the past. Maybe it’s because of the new cli. Did you have a similar problem with livereload and ionic-v1 recently? Any ideas?

Here’s the output of ionic info command:

cli packages: (/Users/emre/.nvm/versions/node/v7.7.2/lib/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0 
Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

Cordova Platforms : android 6.3.0 ios 4.5.3
Ionic Framework   : ionic1 1.3.4

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.2 
ios-sim           : 6.0.0 
Node              : v7.7.2
npm               : 4.1.2 
OS                : macOS Sierra
Xcode             : Xcode 9.0 Build version 9A235 

Environment Variables:

ANDROID_HOME : /Users/emre/Library/Android/sdk

Misc:

backend : pro

#2

Started a fresh example app and wasn’t able to replicate this.

cli packages: (/Users/mhartington/n/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    Gulp CLI : CLI version 3.9.1 Local version 3.9.1

local packages:

    Ionic Framework : ionic1 1.3.4

System:

    Node : v8.9.1
    npm  : 5.6.0
    OS   : macOS High Sierra

Misc:

    backend : pro

I’d check your ionic.config.json to see if it matches this.

{
  "name": "tmp2",
  "app_id": "",
  "type": "ionic1",
  "integrations": {
    "gulp": {}
  },
  "watchPatterns": [
    "scss/**/*",
    "www/**/*",
    "!www/lib/**/*",
    "!www/**/*.map"
  ]
}

#3

@mhartington here’s my ionic.config.json

{
  "name": "MyApp",
  "app_id": "someId",
  "type": "ionic1",
  "watchPatterns": [
    "scss/**/*",
    "www/**/*",
    "!www/lib/**/*",
    "!www/**/*.map"
  ],
  "integrations": {
    "cordova": {},
    "gulp": {}
  }
}