Richard
Richard

Reputation: 8955

Ionic Live Reload not working

Live Reload has stopped working.

When I save code changes, the browser automatically refreshes, but code changes are not reflected. I need to stop my CLI and run ionic serve again in order to have any code changes reflected in the browser.

Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v6.9.4
Xcode version: Xcode 8.2.1 Build version 8C1002

Upvotes: 2

Views: 1498

Answers (2)

larisoft
larisoft

Reputation: 191

I did these to resolve this error on my ubuntu

  1. Remove the npm_folder and package-lock.json files
  2. Run npm install --save-dev
  3. Restart your system

Upvotes: 0

Sampath
Sampath

Reputation: 65988

I think your problem is with your current project.So please create a new project like below.

ionic start myfirstapp blank --v2

After that see whether live reload is working or not.It should work now.

ionic serve

Note: If above one is working then you can copy/ paste your previous project's custom items where you have created to this project.Hope that solution will be much quicker than try to find a solution with the old project.That is my idea.

Upvotes: 3

Related Questions