From a5b3b2f432db189935ef18f3e694b094dbc47733 Mon Sep 17 00:00:00 2001 From: Mohith26 <109003762+Mohith26@users.noreply.github.com> Date: Mon, 2 Nov 2026 20:31:40 -0500 Subject: [PATCH] fix(bolt-vite-react-ts): drop baseUrl from the @/ path alias With baseUrl set, tsc also resolves bare imports like 'src/App' from the project root, which Vite can't resolve, so typecheck passes but the build fails. baseUrl is also deprecated in TypeScript 6 (TS5101) and removed in TypeScript 7 (TS5102). paths works on its own with a ./ prefix. --- bolt-vite-react-ts/tsconfig.app.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bolt-vite-react-ts/tsconfig.app.json b/bolt-vite-react-ts/tsconfig.app.json index e75b2210..48444c9a 100644 --- a/bolt-vite-react-ts/tsconfig.app.json +++ b/bolt-vite-react-ts/tsconfig.app.json @@ -15,9 +15,8 @@ "jsx": "react-jsx", /* Path alias — depth-invariant imports for src (@/foo === src/foo from any file) */ - "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@/*": ["./src/*"] }, /* Linting */