Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

stops watching files after first change #109

Open
chiefjester opened this issue Jan 23, 2020 · 7 comments 路 May be fixed by #110
Open

stops watching files after first change #109

chiefjester opened this issue Jan 23, 2020 · 7 comments 路 May be fixed by #110

Comments

@chiefjester
Copy link

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 pushed a commit to chiefjester/template that referenced this issue Jan 23, 2020
- fixes sveltejs#109 
- chokidar is a transitive dependency of livereload, so passing an option to chokidar is relatively safe
- the fix was inspired by rollup/rollup#1666 (comment)
- tested on both macOS and Ubuntu 19 (via WSL2)
@chiefjester chiefjester linked a pull request Jan 23, 2020 that will close this issue
@leek9
Copy link

leek9 commented Mar 23, 2020

Got similar issue, replaced

!production && livereload('public'),

with this instead to make it work

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

@jarmitage
Copy link

What browsers are people using?

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

@boojum
Copy link

boojum commented Apr 26, 2020

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.

@AmmonStretz
Copy link

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.

@ghost
Copy link

ghost commented Oct 11, 2020

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.

@AlbertMarashi
Copy link

AlbertMarashi commented Nov 9, 2020

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.

@dummdidumm
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants