From 9db16c2073b89e86c5fbafc440ee7b9ee8a245fb Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sat, 26 Sep 2026 21:01:28 +0200 Subject: [PATCH] Hold @lobehub/ui at 5.49 while LobeHub's stable release needs it (#17531) @lobehub/ui 5.50.0 dropped NeuralNetworkLoading, and LobeHub 2.2.18 still imports it through a ^5.47.0 range with lockfile: false, so every fresh build now fails. Upstream moved off it on main; the pin only applies while package.json still asks for a 5.4x range, so it stops on its own with the next stable release. --- ct/lobehub.sh | 3 +++ install/lobehub-install.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ct/lobehub.sh b/ct/lobehub.sh index 4bc9631bf..a4a0c4705 100644 --- a/ct/lobehub.sh +++ b/ct/lobehub.sh @@ -46,6 +46,9 @@ function update_script() { msg_info "Building Application" cd /opt/lobehub export NODE_OPTIONS="--max-old-space-size=8192" + if grep -qE '"@lobehub/ui": "\^5\.4[0-9]\.' package.json; then + sed -i "/^overrides:/a\ '@lobehub/ui': ~5.49.1" pnpm-workspace.yaml + fi $STD pnpm install $STD pnpm run build:docker unset NODE_OPTIONS diff --git a/install/lobehub-install.sh b/install/lobehub-install.sh index 832348d26..d5d75d039 100644 --- a/install/lobehub-install.sh +++ b/install/lobehub-install.sh @@ -41,6 +41,9 @@ export DATABASE_DRIVER="node" export KEY_VAULTS_SECRET="$(openssl rand -base64 32)" export AUTH_SECRET="$(openssl rand -base64 32)" export APP_URL="http://localhost:3210" +if grep -qE '"@lobehub/ui": "\^5\.4[0-9]\.' package.json; then + sed -i "/^overrides:/a\ '@lobehub/ui': ~5.49.1" pnpm-workspace.yaml +fi $STD pnpm install $STD pnpm run build:docker msg_ok "Built Application"