From 129b041f9d780961a3006f2a37cfc9898405d2e4 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 17 Apr 2026 09:12:29 +0200 Subject: [PATCH] fix(clickhouse): remove broken @types/hyperdx__lucene devDep before yarn install v1.10.1 packages/app/package.json contains '@types/hyperdx__lucene': 'npm:@types/lucene' but @types/lucene does not exist on npm (404), causing yarn install --immutable to fail. Remove the devDependency via node patch before install and drop --immutable flag. --- ct/clickhouse.sh | 3 ++- install/clickhouse-install.sh | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ct/clickhouse.sh b/ct/clickhouse.sh index 42013668..d61ab93c 100644 --- a/ct/clickhouse.sh +++ b/ct/clickhouse.sh @@ -49,7 +49,8 @@ function update_script() { $STD git checkout "hyperdx@${LATEST_HDX_VERSION}" msg_info "Building HyperDX" - $STD yarn install --immutable + node -e "const fs=require('fs'),p=JSON.parse(fs.readFileSync('packages/app/package.json','utf8'));delete p.devDependencies['@types/hyperdx__lucene'];fs.writeFileSync('packages/app/package.json',JSON.stringify(p,null,2));" + $STD yarn install $STD yarn workspace @hyperdx/common-utils run build $STD yarn workspace @hyperdx/api run build NEXT_OUTPUT_STANDALONE=true $STD yarn workspace @hyperdx/app run build diff --git a/install/clickhouse-install.sh b/install/clickhouse-install.sh index 73372565..abf92fd2 100644 --- a/install/clickhouse-install.sh +++ b/install/clickhouse-install.sh @@ -210,7 +210,9 @@ EOF msg_ok "Enabled Corepack" msg_info "Building HyperDX" - $STD yarn install --immutable + # Remove broken devDependency (@types/lucene does not exist on npm) + node -e "const fs=require('fs'),p=JSON.parse(fs.readFileSync('packages/app/package.json','utf8'));delete p.devDependencies['@types/hyperdx__lucene'];fs.writeFileSync('packages/app/package.json',JSON.stringify(p,null,2));" + $STD yarn install $STD yarn workspace @hyperdx/common-utils run build $STD yarn workspace @hyperdx/api run build NEXT_OUTPUT_STANDALONE=true $STD yarn workspace @hyperdx/app run build