🎥 Make videos programmatically with React
docs: add article to help debugging a failed render
CruuzAzulff8614546912
diff --git a/packages/docs/docs/troubleshooting/debug-failed-render.md b/packages/docs/docs/troubleshooting/debug-failed-render.mdnew file mode 100644index 0000000000..5b23072392--- /dev/null+++ b/packages/docs/docs/troubleshooting/debug-failed-render.md@@ -0,0 +1,28 @@+---+image: /generated/articles-docs-troubleshooting-debug-failed-render.png+sidebar_label: Debug failed render+title: How to debug failed renders ?+crumb: "Troubleshooting"+---++When using Remotion to render videos, it's possible that your render may fail. If this happens, don't panic ! There are several steps you can follow to troubleshoot the issue.++- <Step>1</Step> Use the `log=verbose` flag++First and foremost, it's important to mention the "log=verbose" method. This allows you to add detailed logs to your project to understand the order of execution of elements and to verify your assumptions.++- <Step>2</Step> Adding logs to your project++Add logs to try to understand the order things are executing in and verifying your assumptions !++- <Step>3</Step> Remove components one by one++Try removing components until the video is empty. At which point does the error disappear ? This can help you identify the component responsible for the render failure.++- <Step>4</Step> Github issues++It's also helpful to check for issues on Github to see if other people have encountered similar problems. If you find an issue that matches your problem, you can add a comment to the issue to help the community troubleshoot the problem.++- <Step>5</Step> Discord++If you can't find a solution on Github, don't hesitate to ask for help on Discord. The community is very helpful and will be happy to assist you in troubleshooting any issues you encounter.\ No newline at end of filediff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex b8d6b5f6ec..16fc673907 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -481,6 +481,7 @@ module.exports = {"troubleshooting/loading-root-component","troubleshooting/defaultprops-too-big","troubleshooting/could-not-be-parsed-as-a-value-list",+ "troubleshooting/debug-failed-render.md",],},{diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex d31b00005e..3d1ab9e5a2 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -2003,6 +2003,13 @@ export const articles = [compId: "articles-docs-troubleshooting-could-not-be-parsed-as-a-value-list",crumb: "Browser quirks",},+ {+ id: "troubleshooting/debug-failed-render",+ title: "How to debug failed renders ?",+ relativePath: "docs/troubleshooting/debug-failed-render.md",+ compId: "articles-docs-troubleshooting-debug-failed-render",+ crumb: "Troubleshooting",+ },{id: "defaultprops-too-big",title: "defaultProps too big - could not serialize",diff --git a/packages/docs/static/generated/articles-docs-troubleshooting-debug-failed-render.png b/packages/docs/static/generated/articles-docs-troubleshooting-debug-failed-render.pngnew file mode 100644index 0000000000..1439165cf3Binary files /dev/null and b/packages/docs/static/generated/articles-docs-troubleshooting-debug-failed-render.png differ