Skip to content

🎥 Make videos programmatically with React

Update webpack-config.ts

Jonny Burgerc8335b1bfb51
diff --git a/packages/bundler/src/webpack-config.ts b/packages/bundler/src/webpack-config.ts
index c99e4988ee..dc00042465 100644
--- a/packages/bundler/src/webpack-config.ts
+++ b/packages/bundler/src/webpack-config.ts
@@ -155,6 +155,7 @@ export const webpackConfig = async ({
'react/jsx-runtime': require.resolve('react/jsx-runtime'),
'react/jsx-dev-runtime': require.resolve('react/jsx-dev-runtime'),
react: require.resolve('react'),
+ // Needed to not fail on this: https://github.com/remotion-dev/remotion/issues/5045
'remotion/no-react': path.resolve(
require.resolve('remotion'),
'..',