Skip to content

🎥 Make videos programmatically with React

Update get-help-link.ts

Jonny Burger44367dc4e870
diff --git a/packages/cli/src/preview-server/error-overlay/remotion-overlay/get-help-link.ts b/packages/cli/src/preview-server/error-overlay/remotion-overlay/get-help-link.ts
index c8f63c6507..dd7bfdb3b7 100644
--- a/packages/cli/src/preview-server/error-overlay/remotion-overlay/get-help-link.ts
+++ b/packages/cli/src/preview-server/error-overlay/remotion-overlay/get-help-link.ts
@@ -4,6 +4,17 @@ export type THelpLink = {
};
export const getHelpLink = (message: string): THelpLink | null => {
+ if (
+ message.includes(
+ 'See https://www.remotion.dev/docs/the-fundamentals#defining-compositions'
+ )
+ ) {
+ return {
+ title: 'Defining compositions',
+ url: 'See https://www.remotion.dev/docs/the-fundamentals#defining-compositions',
+ };
+ }
+
if (message.includes('https://remotion.dev/docs/wrong-composition-mount')) {
return {
title: 'Wrongly mounted <Composition>',