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
lxsmnsyc2y ago
removing it should be fine
Braveheart
Braveheart2y ago
ok, will also complain to the design team
Braveheart
Braveheart2y ago
cant remove cause its the image data
Braveheart
Braveheart2y ago
no idea why its not a reg svg
lxsmnsyc
lxsmnsyc2y 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
lxsmnsyc2y ago
just use href
Braveheart
Braveheart2y ago
worked fine thx
Want results from more Discord servers?
Add your server
More Posts