question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

 Property 'xmlns' does not exist on type 'IntrinsicAttributes...' - TypeScript

See original GitHub issue

I’m surprised I couldn’t find any issue mentioning it. The ‘xmlns’ attribute triggers a typescript error (TS2322).

<Svg xmlns="http://www.w3.org/2000/svg" width={1242.667} height={974.667} viewBox="0 0 932 731" {...props}>
      <Path d="M673.5 3.9c.2.5 1.8 1.1 3.4 1.4 1.6.3 3.6 1.4 4.5 2.3.9.9 1.9 1.4 2.2 1.1.8-.8-5-4.6-8-5.1-1.4-.3-2.4-.1-2.1.3zM205.5 9.2c-7.5 2.6-10.3 4.4-16 9.7-16.2 15.1-16.6 38.6-.9 54.5 21.7 22.1 61.1 16 73.8-11.4 2.6-5.7 3-7.6 2.9-15.5 0-7.5-.4-9.9-2.5-14.7C258 21.5 248.6 13 237.2 9.1c-8.6-2.9-23.2-2.9-31.7.1zm22.7.8c13.3 1.9 24.7 9.8 30.8 21.2 3.2 5.8 3.4 7 3.4 15.3 0 8.2-.3 9.6-3.1 15-10.5 20.1-35.7 28.2-56.7 18.1-16.4-7.9-24.7-22.9-21.7-39.2 2.8-15.2 16.1-27.6 32.7-30.3 6.8-1.2 7.1-1.2 14.6-.1zM662.5 8.1c-1.1 1.6-.1 1.9 1.3.3.7-.8.8-1.4.3-1.4s-1.3.5-1.6 1.1z" />
</Svg>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:16
  • Comments:10

github_iconTop GitHub Comments

13reactions
demedoscommented, Mar 22, 2022

Same. Temporarily solved it by creating a react-native-svg.d.ts file and extending the inferface.

import 'react-native-svg';
declare module 'react-native-svg' {
  export interface SvgProps {
    xmlns?: string;
    xmlnsXlink?: string;
  }
}
1reaction
brianwachiracommented, Dec 1, 2021

None of these files exist:

* node_modules/react-native-svg/src/elements

fixed this issue by reinstalling react-native-svg

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript + React/Redux: Property "XXX" does not exist on ...
The exact error that I'm getting: TS2339: Property 'propToPass' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component ...
Read more >
Typescript Property XXX does not exist on type ... - Edureka
The exact error that I'm getting: TS2339: Property 'propToPass' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component ...
Read more >
Useful Patterns by Use Case - React TypeScript Cheatsheets
In future, the need to forwardRef may go away in React 17+, but for now we still have ... {/* Error: Property 'toPrecision'...
Read more >
Documentation - JSX - TypeScript
Since the above syntax cannot be used in .tsx files, an alternate type ... The as operator is available in both .ts and...
Read more >
property style does not exist on type Element - YouTube
Your browser can't play this video. Learn more. Switch camera ... property style does not exist on type Element | react typescript error....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found