-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
onDidChange is called once #108
Comments
It indeed is called once, and fs.watchFile works as expected as @maximeallanic said, so,is there any plan to fix the issue? @sindresorhus |
What Node.js version and operating system? |
From the Node.js docs:
|
// @yaodingyd |
Have the same issue. the onDidChange is only called the first time I change the file config file. Node v12.16.3 and Fedora 32 |
MacOS 10.15.5 and Node 12.6.3 |
I can't reproduce this on my machine. macOS: 10.14.6 node: 12.4.0 |
Windows 10:
Ubuntu 20.04:
Mac:
as said by @sindresorhus seems to be a nodejs problem. There are several issues about this case such as:
I suggest two workarounds:
|
@adlerluiz Can you check the latest Node.js 15 version? Would be useful to see if that improves the situation. (We'll still need to work around for Node.js 12) |
Replace fs.watch to fs.watchFile in _watch method.
The text was updated successfully, but these errors were encountered: