Skip to content

🎥 Make videos programmatically with React

Update renderEntry.tsx

Jonny Burger5e6a54cc8b4b
diff --git a/packages/bundler/src/renderEntry.tsx b/packages/bundler/src/renderEntry.tsx
index 982ec87df7..70a333d864 100644
--- a/packages/bundler/src/renderEntry.tsx
+++ b/packages/bundler/src/renderEntry.tsx
@@ -7,13 +7,13 @@ import React, {
} from 'react';
import {render} from 'react-dom';
import {
- AnyComponent,
continueRender,
delayRender,
getInputProps,
Internals,
TComposition,
} from 'remotion';
+import {LooseAnyComponent} from 'remotion/src/any-component';
Internals.CSSUtils.injectCSS(Internals.CSSUtils.makeDefaultCSS(null));
Internals.setupEnvVariables();
@@ -39,7 +39,7 @@ const inputProps = getInputProps();
const GetVideo = () => {
const video = Internals.useVideo();
const compositions = useContext(Internals.CompositionManager);
- const [Component, setComponent] = useState<AnyComponent<unknown> | null>(
+ const [Component, setComponent] = useState<LooseAnyComponent<unknown> | null>(
null
);