From 9be832dcfef19aa4c89863a2c7ef04ed6bef58bb Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 10 May 2022 10:04:56 +0800 Subject: [PATCH] fix(ssr): implement empty read() on node stream fix #3846 close #3867 --- packages/server-renderer/src/renderToStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server-renderer/src/renderToStream.ts b/packages/server-renderer/src/renderToStream.ts index 0644fb0a05a..749fb54db24 100644 --- a/packages/server-renderer/src/renderToStream.ts +++ b/packages/server-renderer/src/renderToStream.ts @@ -100,7 +100,7 @@ export function renderToNodeStream( context: SSRContext = {} ): Readable { const stream: Readable = __NODE_JS__ - ? new (require('stream').Readable)() + ? new (require('stream').Readable)({ read() {} }) : null if (!stream) {