# React-based app does not launch

**URL:** <https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369>\
**Category:** support\
**Created:** [June 15, 2024, 8:36am UTC](https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369 "2024-06-15T08:36:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![genkikondo](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@genkikondo](https://discourse.farm-ng.com/u/genkikondo)\
**Post date:** [June 15, 2024, 8:36am UTC](https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369/1 "2024-06-15T08:36:33Z")

</div>

I have a React-based app (with Node.js backend) that no longer launches as of AmigaOS v2.3.0. I noticed via [AmigaOS v2.3 released!](https://discourse.farm-ng.com/t/amigaos-v2-3-released/341) that in manifest.json, http\_gui\_port is now app\_route, so I changed that, but the app still does not appear when clicked on the launcher. Logs via journalctl show that the backend is ready and serving on the specified port, but the browser instance does not appear. How would I go about debugging why?

---

<div class="post-metadata">

**Author:** ![MScatolin](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.farm-ng.com/mscatolin/32/312_2.png) [@MScatolin](https://discourse.farm-ng.com/u/MScatolin)\
**Post date:** [June 15, 2024, 6:25pm UTC](https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369/2 "2024-06-15T18:25:08Z")

</div>

Hi @genkikondo,

I’ve see this behavior myself and I believe we have a fix, but I won’t be able to check until Monday. I will get back to you first thing in the morning! 😉

---

<div class="post-metadata">

**Author:** ![MScatolin](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.farm-ng.com/mscatolin/32/312_2.png) [@MScatolin](https://discourse.farm-ng.com/u/MScatolin)\
**Post date:** [June 17, 2024, 5:37pm UTC](https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369/3 "2024-06-17T17:37:21Z")

</div>

Hey @genkikondo, as promised I was checking with Ian and he says that if your service is starting, then the issues is probably at your manifest file. Can you share it with us?

One tricky thing is that the port now need to be a string. Are you using the “”?

---

<div class="post-metadata">

**Author:** ![genkikondo](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@genkikondo](https://discourse.farm-ng.com/u/genkikondo)\
**Post date:** [June 17, 2024, 6:33pm UTC](https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369/4 "2024-06-17T18:33:50Z")

</div>

My manifest looks like:

```auto
{
  "services": {
    "my-custom-app": {
      "name": "my-custom-app",
      "type": "app",
      "exec_cmd": "/mnt/managed_home/farm-ng-user-genkikondo/my-custom-app/scripts/amiga_run_app.sh",
      "app_route": "3000",
      "display_name": "My Custom App",
      "autostart": false
    }
  }
}

```

`amiga_run_app.sh` just `cd`s into the app dir and calls `npm run start`.

---

<div class="post-metadata">

**Author:** ![MScatolin](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.farm-ng.com/mscatolin/32/312_2.png) [@MScatolin](https://discourse.farm-ng.com/u/MScatolin)\
**Post date:** [June 17, 2024, 7:36pm UTC](https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369/5 "2024-06-17T19:36:57Z")

</div>

Hey @genkikondo

so it looks like we are trying to serve the frontend on the brain with the `npm run start` command. Have you tried calling the main.py directly?

here’s how you can set it up:

```auto
"exec_cmd": "/mnt/managed_home/farm-ng-user-YOUR_USER_HERE/amiga-app-template/venv/bin/python3
                   /mnt/managed_home/farm-ng-user-YOUR_USER_HERE/amiga-app-template/main.py",

```

make sure to double check the directory path to your venv and your app.

If this doesn’t work, I’d like to check the code. Can you share your amiga’s name and a time window you can leave it on for me to ssh? Feel free to shoot me an email with that or set up a call using [this support call link](https://calendar.app.google/sg5EmRWUYAaLfUda7).

---

<div class="post-metadata">

**Author:** ![genkikondo](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@genkikondo](https://discourse.farm-ng.com/u/genkikondo)\
**Post date:** [June 17, 2024, 8:06pm UTC](https://discourse.farm-ng.com/t/react-based-app-does-not-launch/369/6 "2024-06-17T20:06:25Z")

</div>

> [@MScatolin](#):
>
> Have you tried calling the main.py directly?

Unfortunately the app is built with Next.js (and thus Node.js backend) so this doesn’t apply.

I sent you an email with details.
