ReactJS-App not working without tunnel

I am currently fooling around a bit with forge and ReactJS.
So I created a Custom-UI forge app via “jira-global-page” template, removed the static content and recreated it with
npx create-react-app

Without any further changes it will render to this:

BUT: Interestingly it is only rendering when using
forge tunnel
without tunneling the site is empty :thinking:

I wonder why this is the case? A bug in the minification process perhaps? :person_shrugging:

Did you build and deployed the forge app? Tunnel serves the app from your local environment. Without it you need to build the app and deploy it.

Sure :slight_smile:
I don’t know that I can use an app in cloud without deploying and installing it anyway :thinking:
But yes, I do a deploy: nothing is rendering and after that I do tunneling and the app get’s rendered :person_shrugging:

I can try to uninstall, delete, redeploy and reinstall it - but I do not expect a change :wink:

EDIT
“uninstall, delete, register, redeploy and reinstall” → done => same bahavior…

if you wish I can zip and upload the app so you could try for yourself :smiley:

tic-tac-toe.txt (79.2 MB)
renamed from .zip to .txt in cause of restrictions of upload :person_facepalming:

Hi,
Did you manage to find a solution? I have similar issues.
Thanks

Hi @MatteoGubelliniSoftC,

Do you have the "homepage": "." in your package.json of the React App?
See the example here: Bitbucket

Regards,
Nhac

1 Like

Yes, but I still see the same behavior. Does the “name” of the json packages make any difference?
Thanks

Hi @MatteoGubelliniSoftC , name won’t make a difference. have you went into static/hello-world and run npm run build before deploying?

Hi, yes, all to the books.
Strange behaviour, it’s still trying to use the tunnel, even when it’s off. As soon as I reactivate the tunnel, the queues start running again.
Please note that the part with the issue is UI kit, not custom UI.

So it seems I was making too many calls inside the queue, ref. https://developer.atlassian.com/platform/forge/platform-quotas-and-limits/#async-events-limits
Strangely I was not getting any error though.