Forge deploy error: hello-world/build not found

Hi,

I started with forge to create, deploy and install a confluence-macro hello-world up to cjeck my development setup.
Unfortunately the “forge deploy” doesn’t work - build not found.
Here is what I did:
1st - forge create

root@docker:~/atlassian# forge create
Creating an app in your current directory:

    /root/atlassian

Press Ctrl+C to cancel.

Name your app. The app name can include dashes, spaces, and underscores.

? Enter a name for your app: hello-macro

Start with a template. Each template contains the required files to be a valid app.

? Select a category: Show All
? Select a template: confluence-macro-custom-ui

✔ Creating app...

ℹ Downloading template
ℹ Registering app
ℹ Creating environments
ℹ Installing dependencies

✔ Created hello-macro

Your app is ready to work on, deploy, and install. We created 3 environments you can deploy to: production, staging, development.

Change to directory hello-macro to see your app files.

If I run “forge deploy” I got the following error:
2nd: forge deploy

root@docker:~/atlassian/hello-macro# forge deploy
Deploying your app to the development environment.
Press Ctrl+C to cancel.

Running forge lint...
Warning: Could not perform some linting actions for DeprecatedCspPermissionsManifestLinter due to unhandled error "ENOENT: no such file or directory, lstat '/root/atlassian/hello-macro/static/hello-world/build'".

Warning: Could not perform some linting actions for FullManifestLinter due to unhandled error "ENOENT: no such file or directory, lstat '/root/atlassian/hello-macro/static/hello-world/build'".

No issues found.

✕ Deploying hello-macro to development...

ℹ Packaging app files

Error: Resource main at: /root/atlassian/hello-macro/static/hello-world/build not found

Rerunning the command with --verbose may give more details.

As mentioned in the error message, there is no build file:

root@docker:~/atlassian/hello-macro# ls -al /root/atlassian/hello-macro/static/hello-world/
insgesamt 692
drwxr-xr-x 4 root root   4096  3. Mai 14:12 .
drwxr-xr-x 3 root root   4096  3. Mai 14:12 ..
-rw-r--r-- 1 root root    188  3. Mai 14:12 .gitignore
-rw-r--r-- 1 root root    670  3. Mai 14:12 package.json
-rw-r--r-- 1 root root 682220  3. Mai 14:12 package-lock.json
drwxr-xr-x 2 root root   4096  3. Mai 14:12 public
drwxr-xr-x 2 root root   4096  3. Mai 14:12 src

Any ideas on how to solve this problem or wj´here I made a mistake?

Regards,
Ralf

Welcome to the Atlassian Developer community, @RalfBoernemeier!

Since you are working with custom UI, you need to install your custom UI app’s dependencies and build the assets first. You can follow this guide for more information.

Do try it out and let us know how it goes.

Cheers,
Ian

3 Likes

Hi Ian,

Thanks a lot for your supoort and link, which fixed my problem :smile:
confluence_forge

Hava a nice day.
Regards,
Ralf

1 Like