Skip to content

🎥 Make videos programmatically with React

fix type in config

Jonny Burger2496ddb864ba
diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.ts
index bbc412e610..f66d3b11ca 100644
--- a/packages/example/remotion.config.ts
+++ b/packages/example/remotion.config.ts
@@ -10,7 +10,7 @@ Config.Bundling.overrideWebpackConfig((currentConfiguration) => {
module: {
...currentConfiguration.module,
rules: [
- ...currentConfiguration.module.rules,
+ ...(currentConfiguration.module?.rules ?? []),
{
test: /\.mdx?$/,
use: [