-
-
Notifications
You must be signed in to change notification settings - Fork 969
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
Comments
Can not reproduce. |
Was having this issue with import { Composition } from 'remotion';
import { z } from 'zod';
import { Comp } from './HelloWorld';
import './style.css';
const durationInSeconds = 5;
const fps = 60;
export const RemotionRoot: React.FC = () => {
return (
<>
<Composition
component={Comp}
schema={z.object({
backgroundColor: z.string(),
})}
durationInFrames={durationInSeconds * fps}
fps={fps}
height={720}
defaultProps={{ backgroundColor: 'blue' }}
width={1280}
id='hello-world'
/>
</>
);
}; Anyway though, this isn't a big deal at all (for me), I just add this line in my file
Otherwise eslint will sort the props. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From message posted on Discord by d3ch0
Does anyone know if this is a bug. Definiting
defaultProps
BEFOREid
seems to give this error in the Studio:I'm just starting with Remotion so maybe im missing something.
The text was updated successfully, but these errors were encountered: