Build failure in XO v6
-
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
-
Hi!
Can you provide the node version you are using and the exact command in input?
-
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!
-
Can you try again on the latest commit? I think we fixed a build issue like few minutes ago.
-
For reference, I think it might be https://github.com/vatesfr/xen-orchestra/pull/9030
-
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
-
It goes in both direction: by using our latest commits and report issues in here, you are assisting us too
Thank you and enjoy!
-
The same issue was reported here, but seems its been fixed already.
https://github.com/Jarli01/xenorchestra_installer/issues/137