From 58fdf0cf5dcc0055822537eaf5ea1ccd7fd64fe0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 21 Apr 2026 01:54:38 +0000 Subject: [PATCH] fix(errors): use relative import so main-process bundle resolves MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rollup in vite.main.config.ts doesn't know about the `@/` alias (only the renderer configs do). After PR 4 made `lib/errors.ts` reachable from main, its `@/config/env` import broke the main build with: [vite]: Rollup failed to resolve import "@/config/env" from "lib/errors.ts" Swap to a relative import — the module is now genuinely isomorphic. --- js/src/lib/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/lib/errors.ts b/js/src/lib/errors.ts index 25d3d79..d35849c 100644 --- a/js/src/lib/errors.ts +++ b/js/src/lib/errors.ts @@ -1,5 +1,5 @@ import { z } from "zod"; -import { appEnv } from "@/config/env"; +import { appEnv } from "../config/env"; export class ApiError extends Error { constructor(