Skip to content

πŸŽ₯ Make videos programmatically with React

Improved error message

Patric Salvisberg83f91212e73d
diff --git a/packages/cli/src/handle-common-errors.ts b/packages/cli/src/handle-common-errors.ts
index 6c05696670..217f02e3b3 100644
--- a/packages/cli/src/handle-common-errors.ts
+++ b/packages/cli/src/handle-common-errors.ts
@@ -37,9 +37,11 @@ export const handleCommonError = async (err: Error, logLevel: LogLevel) => {
if (err.message.includes('Error creating WebGL context')) {
Log.info();
- Log.warn('πŸ’‘ You might need to set the OpenGL renderer to "angle"');
Log.warn(
- 'πŸ’‘ Get help for this issue at https://www.remotion.dev/docs/three'
+ 'πŸ’‘ You might need to set the OpenGL renderer to "angle" (or "swangle" if rendering on lambda). Learn why at https://www.remotion.dev/docs/three'
+ );
+ Log.warn(
+ "πŸ’‘ Check how it's done at https://www.remotion.dev/docs/chromium-flags#--gl"
);
}
diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.ts
index 342666b5fa..f02daee66e 100644
--- a/packages/example/remotion.config.ts
+++ b/packages/example/remotion.config.ts
@@ -3,4 +3,3 @@ import {webpackOverride} from './src/webpack-override';
Config.setOverwriteOutput(true);
Config.overrideWebpackConfig(webpackOverride);
-Config.setChromiumOpenGlRenderer('angle');