From b501c1d5f49cbbeb3a21816fbc1741eee523ea32 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 15 Mar 2026 05:15:47 +0100 Subject: [PATCH] It runs.. --- tsconfig.app.json | 4 ++-- tsconfig.node.json | 6 +++++- vite.config.ts | 9 +++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/tsconfig.app.json b/tsconfig.app.json index 28e3a1b..d8f95e8 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -23,9 +23,9 @@ "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true, - "baseUrl": "src", + "paths": { - "@/*": ["*"] + "@/*": ["./src/*"] } }, "include": ["src"] diff --git a/tsconfig.node.json b/tsconfig.node.json index 8a67f62..c7932cf 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -20,7 +20,11 @@ "noUnusedParameters": true, "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true + "noUncheckedSideEffectImports": true, + + "paths": { + "@/*": ["./src/*"] + } }, "include": ["vite.config.ts"] } diff --git a/vite.config.ts b/vite.config.ts index 8b0f57b..4b6b7ba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,12 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +import path from 'path' -// https://vite.dev/config/ export default defineConfig({ plugins: [react()], -}) + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, +}) \ No newline at end of file