Skip to content

Commit

Permalink
Turbopack: don't watch output FS (#75680)
Browse files Browse the repository at this point in the history
AFAICT, Next.js doesn't do this either
and this seems to solve this error
```
thread '<unnamed>' panicked at turbopack/crates/turbo-tasks-backend/src/backend/mod.rs:949:13:
Dependency tracking is disabled so invalidation is not allowed

thread 'tokio-runtime-worker' panicked at turbopack/crates/turbo-tasks-fs/src/lib.rs:265:63:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
```
  • Loading branch information
mischnic authored Feb 5, 2025
1 parent bcee095 commit cde0f93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion turbopack/crates/turbopack-cli/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,5 @@ pub async fn project_fs(project_dir: RcStr) -> Result<Vc<Box<dyn FileSystem>>> {
#[turbo_tasks::function]
pub async fn output_fs(project_dir: RcStr) -> Result<Vc<Box<dyn FileSystem>>> {
let disk_fs = DiskFileSystem::new("output".into(), project_dir, vec![]);
disk_fs.await?.start_watching(None).await?;
Ok(Vc::upcast(disk_fs))
}

0 comments on commit cde0f93

Please sign in to comment.