icons-pack / react-simple-icons

📦 This package provides the Simple Icons packaged as a set of React components.
MIT License
287 stars 18 forks source link

`missing the following properties` #219

Closed sshmaxime closed 4 months ago

sshmaxime commented 4 months ago
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} />
ell-ska commented 4 months ago

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",
wootsbot commented 4 months ago

solved #111