# Ionic 5 React - ionic serve fails

**URL:** <https://forum.ionicframework.com/t/ionic-5-react-ionic-serve-fails/183349>\
**Category:** Ionic React\
**Created:** [February 14, 2020, 11:41pm UTC](https://forum.ionicframework.com/t/ionic-5-react-ionic-serve-fails/183349 "2020-02-14T23:41:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![medxchedly](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@medxchedly](https://forum.ionicframework.com/u/medxchedly)\
**Post date:** [February 14, 2020, 11:41pm UTC](https://forum.ionicframework.com/t/ionic-5-react-ionic-serve-fails/183349/1 "2020-02-14T23:41:00Z")

</div>

Hi,

I just installed Ionic CLI and I wanted to start playing with it.  
When I create a new ionic react project with any starter template (blank or tabs) and try to run it using ionic serve I get this error:

 ![Screen Shot 2020-02-14 at 6.34.36 PM](https://global.discourse-cdn.com/ionicframework/original/3X/e/0/e058f86a9acee0b796480c9a82edfa4e3f6c3675.png)  
 ![Screen Shot 2020-02-14 at 6.55.03 PM](https://global.discourse-cdn.com/ionicframework/original/3X/d/9/d9a9dd453c443d8f9df6118836d7146cf17c2ec0.png)

###### 

More info about my env:

 ![Screen Shot 2020-02-14 at 6.35.44 PM](https://global.discourse-cdn.com/ionicframework/original/3X/8/3/83b6ad1d8daf2065c30be0235c0c6f18917bc1da.png)

##### 

Note: If I try to build the project, everything works as expected and I can run the project on my browser.

Any idea what can cause this issue?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Hammad6264](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hammad6264/32/128169_2.png) [@Hammad6264](https://forum.ionicframework.com/u/Hammad6264)\
**Post date:** [February 15, 2020, 2:30am UTC](https://forum.ionicframework.com/t/ionic-5-react-ionic-serve-fails/183349/2 "2020-02-15T02:30:16Z")

</div>

Try uninstalling the ionic and node and then reinstall.

---

<div class="post-metadata">

**Author:** ![medxchedly](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@medxchedly](https://forum.ionicframework.com/u/medxchedly)\
**Post date:** [February 15, 2020, 4:55am UTC](https://forum.ionicframework.com/t/ionic-5-react-ionic-serve-fails/183349/3 "2020-02-15T04:55:56Z")

</div>

I tried on another MacBook and I get the same error.

---

<div class="post-metadata">

**Author:** ![htmn](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/htmn/32/129899_2.png) [@htmn](https://forum.ionicframework.com/u/htmn)\
**Post date:** [February 15, 2020, 12:13pm UTC](https://forum.ionicframework.com/t/ionic-5-react-ionic-serve-fails/183349/4 "2020-02-15T12:13:05Z")

</div>

I’m having the same issue. I tested all 4 @ionic/cli 6.0.0+ versions. The weird thing I found is that this error is present only when choosing a template where the Capacitor prompt pops up:  
`Integrate your new app with Capacitor to target native iOS and Android?`

So the `my-first-app` and `conference` starter templates work fine for me.

---

<div class="post-metadata">

**Author:** ![medxchedly](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@medxchedly](https://forum.ionicframework.com/u/medxchedly)\
**Post date:** [February 18, 2020, 11:12pm UTC](https://forum.ionicframework.com/t/ionic-5-react-ionic-serve-fails/183349/5 "2020-02-18T23:12:12Z")

</div>

It’s an error related to react-scripts version 3.3.\*, has been fixed in 3.4.0  
Github issue: [https://github.com/facebook/create-react-app/issues/8490](https://github.com/facebook/create-react-app/issues/8490)
