Packaging app files Error: Unknown module type for "./src/frontend/icons/levels/level-1.png"

forge deploy -e development
46s
+ forge deploy -e development
Deploying your app to the development environment.
Press Ctrl+C to cancel.
Running forge lint...
No issues found.
Deploying XXX for Jira to development...
ℹ Packaging app files
Error: Unknown module type for "./src/frontend/icons/levels/level-1.png".
Rerunning the command with --verbose may give more details.

Hi,

I’m using Forge UI Kit to import static images in my App. It works good in production. But in a recent small update irrelevant to images, I can’t use forge deploy and the error shown as above.

Note: my app is run on Atlassian.

  jira:issuePanel:
    - key: xxx-issue-panel
      icon: resource:icon-resource;xxx.png

resources:
 - key: icon-resource 
path: src/frontend/icons 
tunnel: 
port: 3000

in the frontend:

import Level1Badge from './icons/levels/level-1.png';

Anyonw could help?

Thanks,

YY1

Hi,

I had to revert to forge 12.4.0

npm install -g @forge/cli@12.4.0

Thanks and it works.

It took me several hours to seek the solution :angry:

Hi @YY1, thanks for raising this. We are aware of the bug and have rolled back the latest tag for @forge/cli to 12.4.0 and will aim to get a hotfix out early next week.

Hi @DylanKroft

So this announcement will be impacted by the rollback to v12.4.0