diff --git a/crates/next-api/src/project.rs b/crates/next-api/src/project.rs index 01d65f6426493..987bfc84bb9be 100644 --- a/crates/next-api/src/project.rs +++ b/crates/next-api/src/project.rs @@ -1354,11 +1354,17 @@ async fn any_output_changed( && (!server || !asset_path.path.ends_with(".css")) && asset_path.is_inside_ref(path) { - Ok(Some(content_changed(*ResolvedVc::upcast(m)))) + anyhow::Ok(Some(content_changed(*ResolvedVc::upcast(m)))) } else { Ok(None) } }) + .map(|v| async move { + Ok(match v.await? { + Some(v) => Some(v.to_resolved().await?), + None => None, + }) + }) .try_flat_join() .await?;