[SOLVED] LiveReload doesn't not work


#1

Hi all,

I have read a lot of post about this problem but without result.
I have try all of those :

  • add some meta in index.html ( like <meta http-equiv=“Content-Security-Policy”… )
  • add js file : http://localhost:37879/livereload.js
  • install plugin livereload on chrome
  • install nodejs version 6.9 and 7.0
  • tried to install an ionic version 1.* (impossible) ionic force install the lastest 2.1.4 :frowning:

I precise when i launch a traditional web gulp project with command “gulp serve” livereload works perfectly. It’s only with ionic he doesn’t work.

Someone can give me some advice ?
Thanks very much.


#2

On Firefox, I have more information in the dev tools :
GET http://localhost:35729/livereload [HTTP/1.1 101 Switching Protocols 2 ms]

This call seem the stay in stand by or waiting something. The app turn inifite with white screen.

Somebody can help me ?
Thanks,


#3

Another information, when I have tried all solutions of the web, I had tried this one :

  • ionic --address
    Then I have switch from “localhost” to “myLocalIp” and live reload has worked for some minutes.
    After this it stopped to work and impossible to reactivate it. Switch again stay without effect.

#4

Problem solved.

How ? I type in the terminal :
netstat -a

I see the port 35729 has anormal activity, so google :
35729 close listening

First result :
by @NTKLR
"Was Sublime text for me:
Preferences>Package Control>remove package> livereload >Restart Sublime text > Worked!"

Great answer, I hope it help others persons.