Hi,
I am using invoke method from UI kit in my app (dashboard-gadget) to call a resolver function that fetches issues from jira, using api.asApp().requestJira
. The problem is when I change the name of the function (from ‘oldFunctionName’ to ‘newFunctionName’) to something new and update in both, on the frontend and the resolver side I get an error:
ERROR 15:45:26.503 0d1f5a95-10d3-4135-8c30-b05325316b9c Error: Resolver has no definition for 'oldFunctionName'.
at Resolver.getFunction (webpack://jira-dashboard-gadget-ui-kit-2/node_modules/@forge/resolver/out/index.js:47:1)
at Object.resolve (webpack://jira-dashboard-gadget-ui-kit-2/node_modules/@forge/resolver/out/index.js:54:1)
My manifets looks like this:
modules:
jira:dashboardGadget:
- key: app-dashboard-gadget
title:
description:
thumbnail:
resource: main-resource
render: native
resolver:
function: resolver
edit:
resource: main-resource
render: native
function:
- key: resolver
handler: index.handler
resources:
- key: main-resource
path: src/frontend/index.jsx
app:
runtime:
name: nodejs20.x
id: ari:
permissions:
scopes:
- read:jira-work
- read:jira-user
When I change the name to ‘oldFunctionName’ everything works as expected.
Please let me know if you need more input.