🎥 Make videos programmatically with React
Update resolve-video-config.ts
Jonny Burger4acfe7489c3d
diff --git a/packages/core/src/resolve-video-config.ts b/packages/core/src/resolve-video-config.tsindex a51c2f51e3..2259a3ca24 100644--- a/packages/core/src/resolve-video-config.ts+++ b/packages/core/src/resolve-video-config.ts@@ -117,6 +117,13 @@ const validateCalculated = ({const durationInFrames =calculated?.durationInFrames ?? composition.durationInFrames ?? null;+ if (durationInFrames <= 0) {+ throw new TypeError(+ 'Composition durationInFrames cannot be less than or equal to 0. Got ' ++ durationInFrames+ );+ }+if (!durationInFrames) {throw new TypeError('Composition durationInFrames was neither specified via the `durationInFrames` prop nor the `calculateMetadata()` function.'