SolidJSS
SolidJS4y ago
7 replies
Braveheart

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>'.


and
ESLint: 'xmlns:' is not one of Solid's special prefixes for JSX attributes ('on:', 'oncapture:', 'use:', 'prop:', 'attr:').(solid/no-unknown-namespaces)
image.png
Was this page helpful?