Potential conflicts with svg elements
See original GitHub issueThere’s a few svg tags that might conflict with react-three-fiber like line, path, and mesh (see: https://developer.mozilla.org/en-US/docs/Web/SVG/Element)
I’ve just been using Three’s Line element and VSCode seems to think it’s an svg element. Thankfully it uses the Three component I want, but what if I want to use svg in the future?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
pmndrs/react-three-fiber - Potential conflicts with svg elements
I've just been using Three's Line element and VSCode seems to think it's an svg element. Thankfully it uses the Three component I...
Read more >svg styles interfering with each other - Stack Overflow
I collect all class names and properties and apply them manually onto the SVG elements. const svgCollection = document.querySelectorAll( 'svg' ); ...
Read more >Document Structure — SVG 2
Specifically: 'audio', 'canvas', 'circle', 'ellipse', 'foreignObject', 'iframe', 'image', 'line', 'path', 'polygon', 'polyline', 'rect', 'text', 'textPath', ' ...
Read more >SVG conflict - WordPress.org
Hallo! I have a doubt. I'm using SVG (IMAGES) in my website but the plugin to upload the SVG is in conflict. My...
Read more >svg elements with an img role must have an alternative text
svg elements with an img role must have an alternative text · What this Accessibility Rule Checks · Related Accessibility Rules Checked by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Typescript complains about it though!
I’m trying to use fiber’s
<line>, but Typescript thinks it’s aJSX.IntrinsicElements.line: React.SVGProps<SVGLineElement>, which of course is not.Ignoring the line with a
@ts-ignoreworks, of course, but it’s kind of annoyingAfter doing this somewhere in your application you can use
<line_>instead of<line>and Typescript won’t get confused.