template icon indicating copy to clipboard operation
template copied to clipboard

stops watching files after first change

Open chiefjester opened this issue 4 years ago • 7 comments

Hi 👋🏻,

Livereload seems to stop after the first change. Upon research, it seems there's a similar issue on the main rollup GitHub repository.

This bug manifests on Windows 10 / WSL 2. I'll be sending a PR in a moment.

chiefjester avatar Jan 23 '20 17:01 chiefjester

Got similar issue, replaced

!production && livereload('public'),

with this instead to make it work

!production && livereload({ watch: 'public' }),

leek9 avatar Mar 23 '20 20:03 leek9

What browsers are people using?

I find that @leek9's solution improves behaviour in Chrome but not Firefox Developer Edition.

jarmitage avatar Apr 09 '20 10:04 jarmitage

Hi 👋🏻,

Livereload seems to stop after the first change. Upon research, it seems there's a similar issue on the main rollup GitHub repository.

This bug manifests on Windows 10 / WSL 2. I'll be sending a PR in a moment.

Your PR did the trick for me. Works fine on arch linux with firefox and chromium.

boojum avatar Apr 26 '20 18:04 boojum

What browsers are people using?

I find that @leek9's solution improves behaviour in Chrome but not Firefox Developer Edition.

For me it the other way around. Chrome does not work Firefox does. But I am not sure If that problem happend in Firefox.

AmmonStretz avatar May 21 '20 05:05 AmmonStretz

What browsers are people using? I find that @leek9's solution improves behaviour in Chrome but not Firefox Developer Edition.

For me it the other way around. Chrome does not work Firefox does. But I am not sure If that problem happend in Firefox.

I'm pretty sure this is a browser-independent problem.

ghost avatar Oct 11 '20 13:10 ghost

Using WSL 2 with docker containers

Deleting my node_modules in my project, and deleting rollup in my C:\Program Files\nodejs\node_modules global folder and force reinstalling with npm i -g rollup --force worked for me.

AlbertMarashi avatar Nov 09 '20 08:11 AlbertMarashi

For those who use vim and experience this issue, this blog post might have some pointers for a solution https://lee-phillips.org/badvim/

dummdidumm avatar Mar 21 '21 17:03 dummdidumm