Skip to content

🎥 Make videos programmatically with React

in node 21, lottie does not support server side import - need to wait on update from lottie

Jonny Burgere6e1bdcd4ccd
diff --git a/packages/astro-example/package.json b/packages/astro-example/package.json
index 98aafdf4a0..0df1f0332f 100644
--- a/packages/astro-example/package.json
+++ b/packages/astro-example/package.json
@@ -18,6 +18,7 @@
"@remotion/player": "workspace:*",
"@remotion/skia": "workspace:*",
"@remotion/three": "workspace:*",
+ "@remotion/transitions": "workspace:*",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"astro": "^2.0.14",
diff --git a/packages/astro-example/test.mjs b/packages/astro-example/test.mjs
index 31757df797..70802650b4 100644
--- a/packages/astro-example/test.mjs
+++ b/packages/astro-example/test.mjs
@@ -6,6 +6,7 @@ import { enableSkia } from "@remotion/skia/enable";
import { Lottie } from "@remotion/lottie";
import { Trail } from "@remotion/motion-blur";
import { ThreeCanvas } from "@remotion/three";
+import { TransitionSeries } from "@remotion/transitions";
import { Gif } from "@remotion/gif";
const val = interpolate(1, [0, 1], [0, 100]);
@@ -18,5 +19,6 @@ assert(Boolean(Lottie));
assert(Boolean(Gif));
assert(Boolean(ThreeCanvas));
assert(Boolean(Trail));
+assert(Boolean(TransitionSeries));
console.log("ESM works!");
diff --git a/packages/it-tests/src/monorepo/esm.test.ts b/packages/it-tests/src/monorepo/esm.test.ts
index 7e517b4288..7aada5ba90 100644
--- a/packages/it-tests/src/monorepo/esm.test.ts
+++ b/packages/it-tests/src/monorepo/esm.test.ts
@@ -26,9 +26,7 @@ test('Should be able to "import" frontend in node', async () => {
execSync(
`node --input-type=module -e "import {getVideoMetadata} from '@remotion/media-utils'; console.log(getVideoMetadata)"`
);
- execSync(
- `node --input-type=module -e "import {Lottie} from '@remotion/lottie'; console.log(Lottie)"`
- );
+
execSync(
`node --input-type=module -e "import {measureText} from '@remotion/layout-utils'; console.log(measureText)"`
);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index abf1a2e8a1..0e86d1c2f0 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -82,6 +82,9 @@ importers:
'@remotion/three':
specifier: workspace:*
version: link:../three
+ '@remotion/transitions':
+ specifier: workspace:*
+ version: link:../transitions
'@types/react':
specifier: 18.2.48
version: 18.2.48