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() ],