Hi everybody,
I'm currently having a problem with Forge tunnel. I'm working on an app which uses Custom UI and I use a local server on http://localhost:3000 for React frontend app which I start with "npm run dev" before starting forge tunnel.
When I deploy and install the app on my site there is no problem and the app works correctly. But when I start "forge tunnel" and reload my app in Jira, Chrome browser throws an error and the loading wheel in my app is stuck turning...
Here is the error from Chrome console :
main.tsx:42 Uncaught (in promise) Error: There was an error invoking the function - Cannot find module '/tmp/forge-dist-61130-USWW6w7cMQ75/bundled/index.js' Require stack: - /tmp/forge-dist-61130-USWW6w7cMQ75/__forge_wr... (truncated) at invoke (https://jira-frontend-bifrost.prod-east.frontend.public.atl-paas.net/assets/async-forge-ui-issue-view-extension.8f99cde1.js:57:112503) at async https://jira-frontend-bifrost.prod-east.frontend.public.atl-paas.net/assets/async-forge-ui-issue-view-extension.8f99cde1.js:57:143624 Error: There was an error invoking the function - Cannot find module '/tmp/forge-dist-61130-USWW6w7cMQ75/bundled/index.js' Require stack: - /tmp/forge-dist-61130-USWW6w7cMQ75/__forge_wr... (truncated) at he.error (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:133263) at Object.<anonymous> (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:141036) at JSON.parse (<anonymous>) at Se.o (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:140895) at Se (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:141048) at Me.s.on (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:145708) at Me (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:145845) at https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:151831 at e.try (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:124315) at https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:151628
In my terminal, where tunnel runs, I see the requests from Jira.
It seems like the app tries to reach files in /tmp folder on my disk but doesn't find "index.js"...
Every time I start forge tunnel, it creates a new folder "/forge-dist-*****-************/ in my /tmp folder.
If I stop tunneling, the app works correctly again.
Part of manifest.yml :
resources:
- key : frontend-resource
- path : static/frontend/dist
- tunnel:
- port:3000
...
runtime: - name: nodejs22.x
Is there anyone who had the same problem ??
EDIT : I just saw I was in the wrong Atlassian Community...If a moderator can delete this post...I will post in Dev Community
@Etienne Larroumets If you are still here, here is the solution.
I am a developer also on Linux (although in my case it is Ubuntu). Had the same problem a few days ago, and downgrading the Forge CLI to the previous minor version solved it immediately!
Can you confirm if you still want a moderator to delete this question? Glad you found the Developer Community.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I posted a message on the Dev Community and got the solution.
It's the same solution as @Aron Gombas _Midori_ , I downgraded to 11.1.0 and now it works.
You can delete this post to avoid having a duplication.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.