Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Failed to compile JSX Element

$
0
0
Users/frederickdineen/Downloads/progamer2013-umrahfrontend-0908e3e047a0/packages/b2b/src/App.tsxTypeScript error in /Users/frederickdineen/Downloads/progamer2013-umrahfrontend-0908e3e047a0/packages/b2b/src/App.tsx(79,11):'StylesProvider' cannot be used as a JSX component.  Its element type 'ReactElement<any, any> | Component<StylesProviderProps, any, any>' is not a valid JSX element.    Type 'Component<StylesProviderProps, any, any>' is not assignable to type 'Element | ElementClass'.      Type 'Component<StylesProviderProps, any, any>' is not assignable to type 'ElementClass'.        The types returned by 'render()' are incompatible between these types.          Type 'React.ReactNode' is not assignable to type 'import("/Users/frederickdineen/node_modules/@types/react/index").ReactNode'.            Type '{}' is not assignable to type 'ReactNode'.              Type '{}' is not assignable to type 'ReactPortal'.  TS2786    77 |     78 | const RTL = (props: RTLProps) => {> 79 |   return <StylesProvider jss={jss}>{props.children}</StylesProvider>;       |           ^    80 | };    81 |     82 | const App = (props: Props) => {

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>