diff --git a/packages/nx/src/native/watch/watcher.rs b/packages/nx/src/native/watch/watcher.rs index 624deafadbf02..8b9c3614d2852 100644 --- a/packages/nx/src/native/watch/watcher.rs +++ b/packages/nx/src/native/watch/watcher.rs @@ -50,7 +50,11 @@ impl Watcher { globs.push("node_modules/".into()); Ok(Watcher { - origin, + origin: if cfg!(window) { + origin.replace("/", "\\") + } else { + origin + }, watch_exec, additional_globs: globs, use_ignore: use_ignore.unwrap_or(true),