Skip to content

Console logs are offset when tunneling Custom UI apps #190

@jkazimierczak-eficode

Description

@jkazimierczak-eficode

Hi, I have an issue where each subsequent message in the console it slightly more offset than previous one, leading to readability problems. Vite startup message is rendering fine, but everything after that, which is forge-related, has the mentioned offsetting. This happens for console.logs originating in resolver-function too. An example of such log message:

v5.2.0

❯ nx serve custom-ui
Wait for all Custom UI 'serve' targets to have started and servers are listening...

                                                                                    NX   Nx Daemon is not enabled. Assets will not be updated when they are changed.


  VITE v7.2.0  ready in 933 ms

  ➜  Local:   http://localhost:4200/
  ➜  press h + enter to show help
[ watch ] build succeeded, watching for changes...
                                                  All Custom UI 'serve' targets have started and servers are listening
   Running: forge tunnel
                        Warning: Your version of Forge CLI is out of date. We recommend you update to the latest version to get the latest features and bug fixes.
                                               Run npm install -g @forge/cli@latest to update from version 12.12.0 to 12.14.1.

           Tunnel redirects requests you make to your local machine. This occurs for any Atlassian site where your app is installed in the specific development environment. You will not see requests from other users.
                                                                                                     Press Ctrl+C to cancel.

         Establishing forge tunnel with the local cloudflared binary

                                                                    === Running forge lint...

                                                                                             /home/kuba/projects/custom-ui/dist/forge/custom-ui/manifest.yml
                                                                         41:4    warning  Unnecessary usage of 'external.styles' permission in the manifest.yml file. You can avoid using this permission by packaging the fonts and styles with your app code.  valid-permissions-required

Also confirmed for v.5.2.3.

v6.1.5


  VITE v7.2.0  ready in 771 ms

  ➜  Local:   http://localhost:4200/
  ➜  press h + enter to show help
Detected the following UI resources in the manifest.yml:
                                                          - custom-ui
                                                                     Copying custom-ui (custom-ui-src) resource build artifacts...
               Done copying custom-ui (custom-ui-src) resource build artifacts.
                                                                               Patching /home/kuba/projects/custom-ui/dist/forge/custom-ui/manifest.yml...
                                                                       Done patching /home/kuba/projects/custom-ui/dist/forge/custom-ui/manifest.yml.
                                                                  Executor ran for package

I'm generally using 5.2.0, as v6 tunnel executor doesn't work for me for some reason, while v5 serve does, but that's another story.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions