remotion-dev / remotion

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

4.0.174 breaks `renderToString(<Img />)` #4007

Closed UmungoBungo closed 1 week ago

UmungoBungo commented 2 weeks ago

Bug Report 🐛

Repro: https://stackblitz.com/edit/github-8ucy4q?file=src%2FHelloWorld.tsx

Steps to reproduce:

  1. Run npm install && npm start
  2. Observe that compilation displays successfully.
  3. Open package.json and change all Remotion versions from 4.0.173 to 4.0.174
  4. Observe that the compilation fails:

ERROR: Tried to enable the buffering state, but a Remotion context was not found. This API can only be called in a component that was passed to the Remotion Player or a . Or you might have experienced a version mismatch - run npx remotion versions and ensure all packages have the same version. This error is thrown by the buffer state https://remotion.dev/docs/player/buffer-state