XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Build failure in XO v6

    Scheduled Pinned Locked Moved Xen Orchestra
    8 Posts 3 Posters 162 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fraser
      last edited by

      Hi all,

      I did a fresh install of Xen Orchestra from sources and noticed that if v6 is included in the build, there’s what seems to be a dependency error. Without v6, everything completes successfully.

      I’ve been able to trace it to the web build, but I haven’t found a known workaround yet

      @xen-orchestra/web:build: vite v6.3.6 building for production...
      @xen-orchestra/web:build: transforming...
      @xen-orchestra/web:build: ✓ 2140 modules transformed.
      @xen-orchestra/web:build: ✗ Build failed in 5.86s
      @xen-orchestra/web:build: error during build:
      @xen-orchestra/web:build: ../web-core/lib/utils/speed.util.ts (1:14): "Scale" is not exported by "../../node_modules/human-format/index.js", imported by "../web-core/lib/utils/speed.util.ts".
      @xen-orchestra/web:build: file: /opt/xo/xo-builds/xen-orchestra-*/@xen-orchestra/web-core/lib/utils/speed.util.ts:1:14
      

      Has anyone else experienced this issue with v6 specifically, or knows of a workaround to get it building?

      Cheers

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi!

        Can you provide the node version you are using and the exact command in input?

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fraser @olivierlambert
          last edited by

          Hi @olivierlambert

          I'm running node v22.20.0 and building from sources using ronivay's XenOrchestraInstallerUpdater script. When INCLUDE_V6="true" in the config file, the script invokes

          yarn run turbo run build --filter @xen-orchestra/web
          

          While troubleshooting I tried again to deploy following the official documentation for 'From the sources' which completes successfully but does not include v6.

          Thanks for you help!

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Can you try again on the latest commit? I think we fixed a build issue like few minutes ago.

            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              For reference, I think it might be https://github.com/vatesfr/xen-orchestra/pull/9030

              ByScripts opened this pull request in vatesfr/xen-orchestra

              closed fix(web): failing build #9030

              F 1 Reply Last reply Reply Quote 0
              • F Offline
                fraser @olivierlambert
                last edited by

                Hi @olivierlambert,

                Just pulled the latest commit and confirmed the build now works perfectly 🎉

                It goes without saying, but your team is incredible. The time and effort that goes into supporting those of us running from sources without paid support, does not go unnoticed or unappreciated.

                Thanks again for the quick fix and all your help!

                Cheers,

                Fraser

                1 Reply Last reply Reply Quote 2
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  It goes in both direction: by using our latest commits and report issues in here, you are assisting us too 🙂 Thank you and enjoy!

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DustinB
                    last edited by

                    The same issue was reported here, but seems its been fixed already.

                    https://github.com/Jarli01/xenorchestra_installer/issues/137

                    nickali created this issue in Jarli01/xenorchestra_installer

                    closed v6 build error: Scale is not exported by #137

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post