Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with defaultProps placement in Remotion causing error when saving default props. #3827

Open
JonnyBurger opened this issue May 2, 2024 · 0 comments

Comments

@JonnyBurger
Copy link
Member

From message posted on Discord by d3ch0

Does anyone know if this is a bug. Definiting defaultProps BEFORE id seems to give this error in the Studio:

Can't save default props: No `defaultProps` prop found in the <Composition/> tag with the ID "HelloWorld"..
// Root.tsx > RemotionRoot component
<>
  // ✅ this works
  <Composition
    id="HelloWorld"
    defaultProps={{ titleText: "Welcome to Remotion" }}
  />
  // ❌ not working because defaultProps are BEFORE id
  <Composition
    defaultProps={{ titleText: "Welcome to Remotion" }}
    id="HelloWorld"
  />
</>

I'm just starting with Remotion so maybe im missing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant