diff --git a/crates/next-core/js/src/internal/page-server-handler.tsx b/crates/next-core/js/src/internal/page-server-handler.tsx index 71fc910f3a620..d61dc414ff308 100644 --- a/crates/next-core/js/src/internal/page-server-handler.tsx +++ b/crates/next-core/js/src/internal/page-server-handler.tsx @@ -59,11 +59,12 @@ export default function startHandler({ } } - const res = await runOperation(renderData); + let res = await runOperation(renderData); if (isDataReq) { if (res === undefined) { - throw new Error("no data result returned"); + // Page data is only returned if the page had getXxyProps. + res = {}; } ipc.send({ type: "result",