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.

No component found for view with name "RNSVGPath"

See original GitHub issue

I’ve been troubleshooting for hours with no luck.

With clean installs I receive this error while building : The following build commands failed:

CompileC /Users/tukdoan/equinox/ios/build/Build/Intermediates.noindex/RNSVG.build/Debug-iphonesimulator/RNSVG.build/Objects-normal/x86_64/RNSVGTSpan.o Text/RNSVGTSpan.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

These are the lines I’m running

import { VictoryBar } from "victory-native";

....

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <VictoryBar/>
      </View>
    );
  }
}

And this in the debugger :

image

This only happens after I do react-native link react-native-svg , before that it builds fine.

I have tried moving the RNSVG xcode file to every possible library, I have done tons of reinstalls.

I can’t just seem to get it to work. Versions: react-native-cli: 2.0.1 react-native: 0.49.1

Thank you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:16
  • Comments:25

github_iconTop GitHub Comments

13reactions
gwenfcommented, Apr 10, 2018

I had to manually link libRNSVG.a in Xcode:

screen shot 2018-04-09 at 9 46 47 pm

Then I closed everything, re-ran react-native run-ios, and then it worked for me.

12reactions
nicolas-yaroscommented, Oct 11, 2017

apparently react-native link adds all targets to the ios target even if they are meant for tvOS

to get your app running remove the -tvOS.a file from link binary with libraries

Source: https://github.com/oblador/react-native-vector-icons/issues/461

worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

No component found for view with name "RNSVGPath" #470
I've been troubleshooting for hours with no luck. With clean installs I receive this error while building : The following build commands ...
Read more >
No component "RNSVGPath" in react native - Stack Overflow
and i'm using storybook, every time i'm trying to see the charts i get an error saying "No component found for view with...
Read more >
No component found for view with name "RNSVGPath"
I've been troubleshooting for hours with no luck. With clean installs I receive this error while building :
Read more >
react-native-svg - npm
react-native-svg provides SVG support to React Native on iOS, Android, macOS, Windows, and a compatibility layer for the web.
Read more >
Ios – Invariant Violation: Native component for ... - iTecNote
No component found for view with the name "RNSVGPath". Or this one: Invariant Violation: Native component for "RNSVGSvgView" does not exist.
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