Skip to content

🎥 Make videos programmatically with React

reference docs link in error message

Jonny Burger436a1b286db0
diff --git a/packages/core/src/Composition.tsx b/packages/core/src/Composition.tsx
index c307122074..a2f3b13dde 100644
--- a/packages/core/src/Composition.tsx
+++ b/packages/core/src/Composition.tsx
@@ -68,11 +68,13 @@ export const Composition = <T,>({
if (canUseComposition) {
if (window.remotion_isPlayer) {
throw new Error(
- '<Composition> was mounted inside the `component` that was passed to the <Player>.'
+ '<Composition> was mounted inside the `component` that was passed to the <Player>. See https://remotion.dev/docs/wrong-composition-mount for help.'
);
}
- throw new Error('<Composition> mounted inside another composition.');
+ throw new Error(
+ '<Composition> mounted inside another composition. See https://remotion.dev/docs/wrong-composition-mount for help.'
+ );
}
const {folderName, parentName} = useContext(FolderContext);