该css道具在构建时无法识别。我不确定这是否是由于项目配置错误造成的,或者这是否代表一个已知的错误。
类型 '{ Children: (string | number | boolean | {} | ReactElement<any, string | ((props: any) => ReactElement<any, string | ... | (new (props: any) => Component<任何,任何,任何>)>) | (new (props: any) => Component<...>)> | ReactNodeArray | ReactPortal | Element)[]; 类名:字符串;css:序列化样式;}' 不可分配给类型 'IntrinsicAttributes & { theme?: Theme; 作为?:元素类型;} & ClassAttributes & HTMLAttributes<...> & { ...; }'。类型“IntrinsicAttributes & { theme?: Theme;”上不存在属性“css” 作为?:元素类型;} & ClassAttributes & HTMLAttributes<...> & { ...; }'
重现:
https://github.com/jbcurrie/jbcurrie.github.io/tree/next
NavMenu.tsx预期行为:
该 …