remotion-dev / remotion

🎥 Make videos programmatically with React
https://remotion.dev
Other
20.53k stars 1.03k forks source link

Module parse failed: Unexpected character '�' (1:0) in @remotion/compositor-darwin-arm64/compositor #3303

Open Andreaswt opened 9 months ago

Andreaswt commented 9 months ago

After installing the NPM package @remotion/renderer, and importing the following in a server action: import { getVideoMetadata, VideoMetadata } from "@remotion/renderer";

And calling getVideoMetadata: const videoMetadata: VideoMetadata = await getVideoMetadata(video.bucketPath);

I receive the following error:

Skærmbillede 2023-12-27 kl  22 24 43

I get these errors in the client console:

Skærmbillede 2023-12-27 kl  22 25 22

These are the remotion packages already installed in the project:

Skærmbillede 2023-12-27 kl  22 23 21

It is a next.js v.14.0.4 project using the app router. Code is running on a Apple M2 Pro MacBook, with Sonoma 14.0.

JonnyBurger commented 9 months ago

Indeed, it does not work when you try to bundle it. I wonder if we can improve that.

slavovthinks commented 6 months ago

Is there any solution to that problem?