tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.44k stars 484 forks source link

Live Relaod Not Working #242

Open adebowaleodulaja opened 6 years ago

adebowaleodulaja commented 6 years ago
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

live-server watches changes but not taking effect on the browser (I've used both Google Chrome and Mozilla Firfox), I have to click refresh each time I make changes to my code.

Software details

IamGrimUs commented 6 years ago

i am experiencing the same issue OS: macOS High Sierra Browser: Firefox, Chrome, Safari Live-server: live-server 1.2.0

codeannie commented 6 years ago

same here: macOS High Sierra Chrome live-server 1.2.0

jdvivar commented 6 years ago

I had the same problem and discovered that my reload wasn't working because my html (which is only for a ver minimalist example, not production code) didn't have any of the HTML tags live reload needs in order to inject its script. Execute with --verbose and check the execution logs to check if that's the case.

IamGrimUs commented 6 years ago

Thanks for the suggestion jdvivar. No luck though. Logs are not showing errors with or without --verbose.

rajiv-shankar commented 6 years ago

Same problem here: OS: macOS High Sierra Browser: Firefox, Chrome Live-server: 1.2.0 Tried on multiple repos. Restarted all apps. Tried different ports. Terminal shows "Ready for changes" Browser shows "Live reload enabled." Shows "Code injected by live-server" and script below ...

0xMMelvin commented 6 years ago

Same problem. OS: macOS High Sierra Browser: Firefox, Chrome Live-Server: 1.2.0

live-server shows update in terminal but not reloading in browser. The usual javascript injected by live server is not showing when I 'View Source', nor is Live reload enabled showing in chrome or firefox's dev tools.

ruiyongsheng commented 6 years ago

Today live-reload not working, I change my wifi setting; first choose your favorite settings→network→senior→

image

change your DNS address, live-server is working normally!!! I hope to help you @rajiv-shankar @jdvivar @codeannie

rinoldit commented 5 years ago

Kindly make sure the html file includes tags such as <head></head> <body></body> for atuo reload. Happy coding.

doronbehar commented 5 years ago

I've also stumbled across this issue a while ago and I couldn't figure out why sometimes the browser does reload the page and sometimes it doesn't. I use mostly live-server when writing markdown documents and while I setup Neovim to run pandoc on the current file when I save it.

The weird thing is, that when the live-server process is running from within Neovim's :terminal, the browser doesn't reload, but if it's running from say a different Tmux pane, the browser does reload!

This could be an issue specific to Neovim but I have no idea how would it be clear enough to report it. I have no explanation for this weird behavior but ever since I'm aware of it, I'm no longer frustrated when I don't see the changes in my browser.

I hope this helps.

thiagotigaz commented 4 years ago

In my case it detects the change but doesn't reflect it.

I added a console.log, it prints 'Change detected', but when I execute the code doesn't print it.

shettykaran21 commented 4 years ago

OS: win32 Browser: Chrome Live Server: 1.2.1

In my case, the live-server reloads the page only when I make changes in my HTML, it doesn't detect changes in css or js

mattrmay commented 3 years ago

I'm having a difficult time finding the appropriate issues that I'm facing. The auto-reload feature is working only when the file I'm editing is saved.

live-server is installed globally. I haven't made any changes to the default config, ~/.live-server.json does not exist in my home directory.

Firefox console shows Live reload enabled.

Any help would be appreciated! :)

sugamkarki commented 1 year ago

Still having this issue!!

KaranJayakumar commented 9 months ago

Still having this issue despite making the aforementioned changes