watchify icon indicating copy to clipboard operation
watchify copied to clipboard

Watchify is not detecting changes

Open chrisspen opened this issue 5 years ago • 3 comments

If I run:

watchify mycode.js -o mybundle.js --verbose

then watchify only detects changes made in the first ~1 minute. Afterwards, no further changes are detected, and it never updates the bundle. I have to kill the process and restart it for it to detect changes again.

I have the most recent version installed via:

sudo npm install watchify -g

Is this behavior normal or is it a bug?

chrisspen avatar Mar 29 '21 19:03 chrisspen

Agree with this issue. I experienced the same behavior. It watched only first change and after that no actions. Had to stay on Watchify v3. As soon as I downgrade everything works smoothly.

oleksii-sirochenko avatar Apr 06 '21 12:04 oleksii-sirochenko

@alex-sirochenko Good catch. It looks like the problem is specific to version 4.0.0.

3.11.1 is the last version that works correctly for me.

chrisspen avatar Apr 06 '21 17:04 chrisspen

Can confirm (using Ubuntu 22 / Node v18 ). I split test between 4.0.0 and 3.11.1 and having the same issue; with v4 watching works for what seems like the first 3 changes and then silently quits (appears to be still watching until you realize it isn't). v3 works fine.

drschwabe avatar Jun 19 '23 03:06 drschwabe