Skip to content

🎥 Make videos programmatically with React

start writing docs

Jonny Burger80cae4d33cec
diff --git a/packages/docs/docs/wrong-composition-mount.md b/packages/docs/docs/wrong-composition-mount.md
new file mode 100644
index 0000000000..aba25f028f
--- /dev/null
+++ b/packages/docs/docs/wrong-composition-mount.md
@@ -0,0 +1,22 @@
+---
+id: wrong-composition-mount
+title: Wrongly mounted <Composition>
+---
+
+## Problem
+
+You are facing the following error:
+
+```
+<Composition> mounted inside another composition.
+```
+
+or, inside a player:
+
+```
+'<Composition> was mounted inside the `component` that was passed to the <Player>.'
+```
+
+## Solution
+
+### In the Remotion Preview
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 269129cf97..5a1e3c8260 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -263,6 +263,7 @@ module.exports = {
"version-mismatch",
"enametoolong",
"slow-method-to-extract-frame",
+ "wrong-composition-mount",
],
},
{