You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!')
})
The text was updated successfully, but these errors were encountered:
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 :(
The text was updated successfully, but these errors were encountered: