Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'xmlns:xlink' does not exist on type 'SvgSVGAttributes<SVGSVGElement>'. #2049

Open
thep0y opened this issue Jan 26, 2024 · 1 comment
Labels
typescript relating to typescript or types

Comments

@thep0y
Copy link

thep0y commented Jan 26, 2024

Describe the bug

SVG supports the definition of namespace prefixes, but these attributes are missing in SolidJS, as indicated by the error in the title.

Your Example Website or App

nope

Steps to Reproduce the Bug or Issue

const Icon = () => (
  <svg
    viewBox="0 0 400 400"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"  // <= Property 'xmlns:xlink' does not exist on type 'SvgSVGAttributes<SVGSVGElement>'. 
  >
  // ...
  </svg><
)

Expected behavior

https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course#declaring_namespace_prefixes

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Firefox
  • Version: 122

Additional context

No response

@ryansolid ryansolid added the typescript relating to typescript or types label Jan 27, 2024
@ryansolid ryansolid reopened this Feb 14, 2024
@ryansolid
Copy link
Member

Accidentally closed this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript relating to typescript or types
Projects
None yet
Development

No branches or pull requests

2 participants