🎥 Make videos programmatically with React
`@remotion/bundler`: List available compositions when specifying an invalid ID
Jonny Burgerff2740533a5e
diff --git a/packages/bundler/renderEntry.tsx b/packages/bundler/renderEntry.tsxindex 0ab22a30a7..8b4038ebf9 100644--- a/packages/bundler/renderEntry.tsx+++ b/packages/bundler/renderEntry.tsx@@ -375,7 +375,11 @@ if (typeof window !== 'undefined') {const compositions = getUnevaluatedComps();const selectedComp = compositions.find((c) => c.id === compId);if (!selectedComp) {- throw new Error(`Could not find composition with ID ${compId}`);+ throw new Error(+ `Could not find composition with ID ${compId}. Available compositions: ${compositions+ .map((c) => c.id)+ .join(', ')}`,+ );}const abortController = new AbortController();