diff --git a/packages/integrations/react/server.js b/packages/integrations/react/server.js index d8c0c25fb6..6dd289c994 100644 --- a/packages/integrations/react/server.js +++ b/packages/integrations/react/server.js @@ -123,7 +123,7 @@ async function renderToStaticNodeStreamAsync(vnode) { let html = ''; return new Promise((resolve, reject) => { let stream = ReactDOM.renderToStaticNodeStream(vnode); - stream.on('error', err => { + stream.on('error', (err) => { reject(err); }); stream.pipe(