Npm run build fails when importing @forge/api

Hello David,

@forge/api package can only be used in the Forge backend (which includes UI Kit, since the UI is defined while running the backend code). That’s why it requires node in the config, and references Node.js APIs such as url, global and require.

To call Jira from Custom UI, use @forge/bridge instead.

1 Like