From 0e87ad8fde2126563f75f44902bde315d38510d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Sat, 30 Nov 2024 10:48:38 +0900 Subject: [PATCH] fix --- crates/next-api/src/project.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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?;