Error deploying UIKit forge app due to too new version of media-viewer (49.4.3)

Just creating a new forge uikit app and unable to deploy. I’m not changing any code, just creating a new jira issue panel with uikit.

Getting this message when deploying: Error: Bundling failed: Module not found: Error: Can’t resolve ‘@forge/resolver’ in ‘…\src\resolvers’

When running this command: npm install @forge/resolver
I get this message: npm ERR! notarget No matching version found for @atlaskit/media-viewer@49.4.3.
Checking the media-viewer and found the newest version of media viewer is 49.4.2

Hey @EricKruegerStrataCom,

Can you tell me what version of the forge cli you’re running?

forge --version

Cheers!
Mel

10.12.0

Thanks @EricKruegerStrataCom - looks like i have been able to replicate this. Let me investigate.

Hey @EricKruegerStrataCom

Thanks so much for your patience! We’re working on resolving the cause of the issue now.

Mel

Hi @EricKruegerStrataCom,

Thanks for your patience. The problem that was causing this error is now resolved.

To fix this issue, simply run npm install to install the required dependencies, then you’ll be able to run forge deploy.

If this resolves the issue please mark this post as the solution.

If you’re still experiencing any problems, please let me know.

Thanks!
Mel

Got the same error when building new app yesterday. I tried ‘npm install’ after ‘forge create’ yesterday but it would still fail.

After latest changes(?) it works fine today.

forge create
npm install << new step
forde deploy

worked for me.

Thank you.

@bitrey that’s right - there was a problem yesterday with the forge create function not getting the dependencies correctly for UI Kit apps, and causing the npm install that runs as part of forge create to fail.

This resulted in an error when you tried to deploy (or in fact when running an npm install to try and fix the issue). We resolved the underlying problem, and the fix for affected apps is to run npm install.

For UI Kit apps created after the fix, you won’t need to perform the extra step, and once you’ve run the extra step once you won’t need to do it again.

Cheers!
Mel

1 Like