Console.log is not working in hello-world app in Jira

Hello everyone,

I followed the instructions on this link to create a hello-world app in Jira: Build a Hello World app in Jira.

However, console.log is not working.

Does anyone know why it’s not working? Could it be because the version is outdated?
Could I be missing something in the steps I followed?

@satoshi.tanoue I followed the instructions in the link you provided and console.log works for me both in the frontend app and backend resolver.

Are you running the app using forge tunnel? Also, are you logging it in the frontend or backend?

1 Like

@rcsr
I am using forge tunnel, and I was able to confirm that console.log is working in the resolver. However, I couldn’t see the console.log output in the developer tool’s console. I don’t fully understand the meanings of frontend and backend. Does frontend refer to the browser’s developer console? Does backend refer to forge logs or forge tunnel? I am a beginner with Forge. Thank you for your assistance.

Does frontend refer to the browser’s developer console? Does backend refer to forge logs or forge tunnel ?

Frontend is your app’s client side React app (src/frontend folder) so any logs will be displayed in your browser’s developer console. Backend is your resolver functions e.g. anything declared inside src/index.js.

If you can’t see anything being logged in your developer console, maybe check your log levels - you will need Info enabled.

Can you post the frontend portion of the code? It would help us debug this further.

1 Like

Thank you for your response. I now understand what frontend and backend refer to. When I turned off the “Selected context only” filter in the Chrome DevTools, it worked correctly. I appreciate your support.

1 Like