From 05f0ceceb6073a038d8c10467c5fac8544a82797 Mon Sep 17 00:00:00 2001 From: Shirone Date: Wed, 21 Jan 2026 22:39:20 +0100 Subject: [PATCH] fix: build failing --- apps/ui/src/lib/utils.ts | 4 +++- libs/utils/package.json | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/ui/src/lib/utils.ts b/apps/ui/src/lib/utils.ts index 6e291a2e..a0dd8d44 100644 --- a/apps/ui/src/lib/utils.ts +++ b/apps/ui/src/lib/utils.ts @@ -9,7 +9,9 @@ export function cn(...inputs: ClassValue[]) { // Re-export getErrorMessage from @automaker/utils to maintain backward compatibility // for components that already import it from here -export { getErrorMessage } from '@automaker/utils'; +// NOTE: Using subpath export to avoid pulling in Node.js-specific dependencies +// (the main @automaker/utils barrel imports modules that depend on @automaker/platform) +export { getErrorMessage } from '@automaker/utils/error-handler'; /** * Determine if the current model supports extended thinking controls diff --git a/libs/utils/package.json b/libs/utils/package.json index d4240d8c..0d7d5149 100644 --- a/libs/utils/package.json +++ b/libs/utils/package.json @@ -17,6 +17,10 @@ "./debounce": { "types": "./dist/debounce.d.ts", "default": "./dist/debounce.js" + }, + "./error-handler": { + "types": "./dist/error-handler.d.ts", + "default": "./dist/error-handler.js" } }, "scripts": {