Type '{ children: Element[]; isMobile: boolean; }' is not assignable to type 'IntrinsicAttributes & { theme?: Theme | undefined; as?: ElementType<any> | undefined; } & ClassAttributes<HTMLDivElement> & HTMLAttributes<...>'.
// styles.ts
export const AboutProfileContainer = styled.div`
display: flex;
flex-direction: ${props => (props.isMobile ? 'column-reverse' : 'row')};
`
// styles.ts
export const AboutProfileContainer = styled.div<{isMobile:boolean}>`
display: flex;
flex-direction: ${props => (props.isMobile ? 'column-reverse' : 'row')};
`
'TroubleShooting' 카테고리의 다른 글
[ Next.js ] Error: next-image-unconfigured-host (0) | 2024.01.08 |
---|---|
[ style X ] Error:stylex.create should never be called. It should be compiled away. (1) | 2024.01.04 |
Hydration (0) | 2023.10.26 |
Error: 를 어떻게 [ERROR] 로? (0) | 2023.10.22 |
[ Error ] UnhandledPromiseRejection (0) | 2023.10.22 |