🎥 Make videos programmatically with React
Update compose.ts
Jonny Burger03cc90e5bd54
diff --git a/packages/renderer/src/compositor/compose.ts b/packages/renderer/src/compositor/compose.tsindex 0e964838a3..5a247ef878 100644--- a/packages/renderer/src/compositor/compose.ts+++ b/packages/renderer/src/compositor/compose.ts@@ -146,7 +146,20 @@ export const callCompositor = (return;}- child.stdin.write(payload);+ try {+ child.stdin.write(payload);+ } catch (err) {+ if (err instanceof Error && err.message.includes('EPIPE')) {+ reject(+ new Error(+ 'Compositor stdin closed unexpectedly,' ++ Buffer.concat(stderrChunks).toString('utf-8'),+ ),+ );+ return;+ }+ }+child.stdin.end();});};