icons-pack/react-simple-icons

`missing the following properties`

Closed this issue · 2 comments

Type '{ size: number; }' is missing the following properties from type 'Pick<SVGProps<SVGSVGElement>, "string" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "onChange" | "color" | "height" | ... 458 more ... | "key">': onPointerEnterCapture, onPointerLeaveCapturets(2739)

Has anyone ever seen Typescript complains like that before ? All i'm doing is:

<SiEthereum size={16} />

I'm getting the same type of error when simply rendering <SiReact /> after updating the types for React:

Type error: Type '{}' is missing the following properties from type 'Pick<SVGProps<SVGSVGElement>, "string" | "spacing" | "order" | "height" | "width" | "rotate" | "scale" | "cursor" | "fill" | "stroke" | "strokeWidth" | ... 458 more ... | "key">': onPointerEnterCapture, onPointerLeaveCapture

trying to update from:

"@types/react": "18.2.64",
"@types/react-dom": "18.2.21",

to:

"@types/react": "18.2.74",
"@types/react-dom": "18.2.24",

solved #111