Skip to content

--watch mode does not work on volumes mounted via /etc/synthetic.conf #47077

Open
@millerick

Description

@millerick

Version

v18.15.0

Platform

Darwin BL-mmillerick-NNH946444W 22.3.0 Darwin Kernel Version 22.3.0: Thu Jan 5 20:48:54 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T6000 arm64

Subsystem

No response

What steps will reproduce the bug?

I am using a Mac. I have the following entry in /etc/synthetic.conf to create a folder in my root directory where I house all of my source code repositories.

src     System/Volumes/Data/src

After mounting a directory in this fashion, create /src/experiment.js with the following contents:

setInterval(() => { console.log('output') }, 1000)

Then begin running it with node --watch /src/experiment.js. Separately run touch /src/experiment.js and observe that the reload does not happen.

If instead you do the above, but replace /src/experiment.js with ~/experiment.js, the reload happens as expected.

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

I would expect node --watch to work in any directory, and always produce output like

Restarting '/Users/mmillerick/experiment.js'
output
output

What do you see instead?

Instead I do not see reloads happening.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    watch-modeIssues and PRs related to watch mode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions