SOLID svg tsc error

any ideas about this?
TS2322: Type '{ children: Element[]; width: string; height: string; viewBox: string; fill: string; xmlns: string; "xmlns:xlink": string; }' is not assignable to type 'SvgSVGAttributes<SVGSVGElement>'.   Property 'xmlns:xlink' does not exist on type 'SvgSVGAttributes<SVGSVGElement>'.
TS2322: Type '{ children: Element[]; width: string; height: string; viewBox: string; fill: string; xmlns: string; "xmlns:xlink": string; }' is not assignable to type 'SvgSVGAttributes<SVGSVGElement>'.   Property 'xmlns:xlink' does not exist on type 'SvgSVGAttributes<SVGSVGElement>'.
and ESLint: 'xmlns:' is not one of Solid's special prefixes for JSX attributes ('on:', 'oncapture:', 'use:', 'prop:', 'attr:').(solid/no-unknown-namespaces)
7 Replies
lxsmnsyc
lxsmnsyc3y ago
removing it should be fine
Braveheart
BraveheartOP3y ago
ok, will also complain to the design team
Braveheart
BraveheartOP3y ago
cant remove cause its the image data
Braveheart
BraveheartOP3y ago
no idea why its not a reg svg
lxsmnsyc
lxsmnsyc3y ago
xlink:href - SVG: Scalable Vector Graphics | MDN
The xlink:href attribute defines a reference to a resource as a reference IRI. The exact meaning of that link depends on the context of each element using it.
lxsmnsyc
lxsmnsyc3y ago
just use href
Braveheart
BraveheartOP3y ago
worked fine thx
Want results from more Discord servers?
Add your server