Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49256

Ionic 4.9.1 React App Template Compile Error

$
0
0

@bigideas wrote:

Hi folks, just getting started with Ionic / React and ran into a compile error creating a new app using both the Blank and Side Menu templates:

I created a new app using the NPM CLI, and it is created successfully, but when I go to run it with the “ionic serve” command the following error appears:

> react-scripts.cmd start
[react-scripts] Starting the development server...
[react-scripts]
[react-scripts] Failed to compile.
[react-scripts]
[react-scripts] C:/.../src/App.tsx
[react-scripts] TypeScript error in C:/.../src/App.tsx(45,4):
[react-scripts] Type '{ children: Element; }' is missing the following properties from type 'Pick<IonicReactExternalProps<IonApp & ReactProps, HTMLIonAppElement>, "hidden" | "dir" | "slot" | "style" | "title" | "contextmenu" | "color" | "key" | "children" | "accessKey" | ... 157 more ... | "onTransitionEndCapture">': hidden, dir, slot, style, and 162 more.  TS2740
[react-scripts]     43 |
[react-scripts]     44 | const App: React.FC = () => (
[react-scripts]   > 45 |   <IonApp>
[react-scripts]        |    ^
[react-scripts]     46 |     <IonReactRouter>
[react-scripts]     47 |       <IonSplitPane contentId="main">
[react-scripts]     48 |         <Menu appPages={appPages} />

I realize this is still in beta and maybe there is another place to post this, but I don’t see any categories for either beta testing or ionic with react.

Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49256

Trending Articles



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