Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into v4

Jonny Burger79fdaff651e1
diff --cc packages/bundler/src/renderEntry.tsx
index 862da2b903,b8ac42114e..13a383640b
--- a/packages/bundler/src/renderEntry.tsx
+++ b/packages/bundler/src/renderEntry.tsx
@@@ -47,10 -47,16 +47,16 @@@ const GetVideo: React.FC<{state: Bundle
if (!video && compositions.compositions.length > 0) {
const foundComposition = compositions.compositions.find(
(c) => c.id === state.compositionName
- ) as TComposition;
+ ) as AnyComposition;
if (!foundComposition) {
throw new Error(
- 'Found no composition with the name ' + state.compositionName
+ `Found no composition with the name ${
+ state.compositionName
+ }. The following compositions were found instead: ${compositions.compositions
+ .map((c) => c.id)
+ .join(
+ ', '
+ )}. All compositions must have their ID calculated deterministically and must be mounted at the same time.`
);
}