Replies: 3 comments
-
Hi there! |
Beta Was this translation helpful? Give feedback.
-
Yes I had been using the official Next.js template for remotion and using the Player and playing videos works great. As soon as I create a video that includes a remotion-animated component I get the following error that I believe is SSR related. N.B. the animated video I am trying to play in Next.js works fine using just the remotion preview.
Any ideas would be really appreciated. |
Beta Was this translation helpful? Give feedback.
-
Ah I see. This seems to be a problem around ESM vs. CommonJS. Have you tried these solutions here? If this doesn't help, please feel free to open an issue on this project, then a change might be necessary to the configuration of the |
Beta Was this translation helpful? Give feedback.
-
Is there recommended approach to using remotion-animated in a Next.js app with SSR?
I've tried using next/dynamic to dynamically render a client side only component but I'm getting nowhere fast. Any suggestions would be really appreciated.
e.g.
const AnimatedWrapper = dynamic(() => import("./AnimatedWrapper"), {
ssr: false
})
Beta Was this translation helpful? Give feedback.
All reactions