Skip to content

🎥 Make videos programmatically with React

Update error message

Jonny Burgerb82beeecd49c
diff --git a/packages/core/src/use-video-config.ts b/packages/core/src/use-video-config.ts
index be95d61ccc..9c1cd39d9d 100644
--- a/packages/core/src/use-video-config.ts
+++ b/packages/core/src/use-video-config.ts
@@ -5,7 +5,7 @@ export const useVideoConfig = (): VideoConfig => {
const videoConfig = useUnsafeVideoConfig();
if (!videoConfig) {
- throw new Error('No video config found');
+ throw new Error('No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.');
}
return videoConfig;