Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not always working #9

Open
xeroxstar opened this issue Mar 8, 2019 · 0 comments
Open

Not always working #9

xeroxstar opened this issue Mar 8, 2019 · 0 comments

Comments

@xeroxstar
Copy link

xeroxstar commented Mar 8, 2019

The watcher is triggering the custom event only once then any change to the file the watcher do nothing. The first change to the file works but this is it, sometimes it works for 3-4 changes to the file but most of the time nothing happens after json file changed. I tested with json files and didnt work as expected, here is my basic code :(

let watchers = ['path to the file'];
_watcher.watch('event', watchers);
_watcher.on('event', function () {
        console.log('custom event!')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant