From c355c4b78451708b04e17a7c50680dee507f0c40 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 0644fb0a..749fb54d 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) {