No component found for view with name "RNSVGPath"
See original GitHub issueI’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 :
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:
- Created 6 years ago
- Reactions:16
- Comments:25
Top 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 >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 FreeTop 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
Top GitHub Comments
I had to manually link
libRNSVG.a
in Xcode:Then I closed everything, re-ran
react-native run-ios
, and then it worked for me.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