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
Linux 0440267859e6 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 Linux
Docker image: node:21.5.0-alpine3.19
Subsystem
No response
What steps will reproduce the bug?
On linux running in docker with node I see the folloing problem: node --watch does restart only on first change of file (made with cp command). It works as expected if to change file in editor. I aslo tested the same version of node (v21.5.0) in WSL - it works as expected, so the problem is not in node version.
Version
v21.5.0
Platform
Subsystem
No response
What steps will reproduce the bug?
On linux running in docker with node I see the folloing problem:
node --watch
does restart only on first change of file (made with cp command). It works as expected if to change file in editor. I aslo tested the same version of node (v21.5.0) in WSL - it works as expected, so the problem is not in node version.Image used for docker: node:21.5.0-alpine3.19
run
Output:
Update file with cp:
Watch should restart
Update file again with cp second time:
Watch doesn't restart.
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
Node watch restarts each time files is copied with cp command.
What do you see instead?
Node watch restarts only first time.
Additional information
Image used for docker: node:21.5.0-alpine3.19
The text was updated successfully, but these errors were encountered: