Closed mrtonyhuynh closed 10 years ago
The error message states that it's in use. Do you have another server or livereload plugin running? This happened to me until I figured out I have a livereload app running, it took me a while to figure it out the first time :P
I do not have any other app use livereload, but this is still happening. Strange that, I try to use generator-webapp and it don't have any problems.
gulp serve
my application that was created by generator-gulp-webapp. Everything is fine until I change the contents of the index.html file (by Sublime Text 3 - no livereload plugin) and save it. Content in the browser nothing changes (synonymous with live-editing does not work), press F5 -> oops, it crash !. Livereload crash Did I have something mistake?
You should close the LiveReload for Windows you downloaded, you only need the Chrome plugin for this generator. Did you try with the LiveReload closed?
If close Livereload for Windows, cannot activate livereload chrome extension.
That means that livereload inoperable.
And console log return error msg:
Error: Failed to load resource: net::ERR_CONNECTION_REFUSED
I find it hard to understand why Grunt runs fine, but fail with Gulp. =.="
Yes, it indeed doesn't make sense why it works with Grunt. You don't even need the LiveReload Chrome extension for it to work, because the livereload package injects the same (or a similar) script to your page. Without touching the LiveReload extension, when you run gulp watch
and the browser tab opens, does the LiveReload work or does the error above appear?
Wow, gulp watch
work like a charm without LiveReload Extension & Application Running.
Thank you very much!
I didn't notice you were running gulp serve
instead of gulp watch
, that was the problem all along :)
Using
gulp serve
orgulp watch
lead to crash the livereload if some file have changed. At first I think my livereload faulty. I tried with generator-webapp (using grunt) then everything is fine, I'm afraid connect-livereload or gulp-livereload may cause.Error message (with gulp watch)
Livereload log