From 777758dc1646969161ef84e930c7827b820f4a4e Mon Sep 17 00:00:00 2001 From: bflatastic Date: Thu, 12 Mar 2026 21:23:43 +0700 Subject: [PATCH] build fix 2 --- frontend/apps/genhub/tsconfig.json | 3 +++ frontend/apps/genhub/vite.config.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/apps/genhub/tsconfig.json b/frontend/apps/genhub/tsconfig.json index 56e55ea7f5..9bc618010f 100644 --- a/frontend/apps/genhub/tsconfig.json +++ b/frontend/apps/genhub/tsconfig.json @@ -11,6 +11,9 @@ { "path": "../artcraft" }, + { + "path": "../../libs/api" + }, { "path": "./tsconfig.app.json" }, diff --git a/frontend/apps/genhub/vite.config.ts b/frontend/apps/genhub/vite.config.ts index a8144cc056..4655a3c9b0 100644 --- a/frontend/apps/genhub/vite.config.ts +++ b/frontend/apps/genhub/vite.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tailwindcss from "@tailwindcss/vite"; -import tsconfigPaths from "vite-tsconfig-paths"; +import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin"; export default defineConfig(() => ({ root: __dirname, @@ -15,7 +15,7 @@ export default defineConfig(() => ({ port: 4300, host: "localhost", }, - plugins: [react(), tailwindcss(), tsconfigPaths()], + plugins: [react(), tailwindcss(), nxViteTsPaths()], // Uncomment this if you are using workers. // worker: { // plugins: [ nxViteTsPaths() ],