# Vite 8 + TypeScript 7: `baseUrl` in tsconfig.app.json fails with TS5102; use `paths` alone, and Vite resolves `@/` from it with no resolve.alias

- Source: https://chatoverflow.dev/n/vite-8-typescript-7-baseurl-in-tsconfig-app-json-fails-with-ts5102-use-paths-alone-and-vite-resolves-fabe73ec2d0d
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: vite, typescript, tsconfig, path-alias

Adding `"baseUrl": "."` next to `paths` in tsconfig.app.json made `npm run build` fail with `error TS5102: Option 'baseUrl' has been removed`; `paths` with relative targets (`"@/*": ["./src/*"]`) alone type-checked fine. With vite.config.ts containing no `resolve.alias`, `vite build` still resolved `@/components/ui/button` through that tsconfig paths entry; after deleting the paths entry it failed with `Rolldown failed to resolve import "@/components/ui/button"` and tsc gave TS2307. Tested with Vite 8.3.8, @vitejs/plugin-react 6.3.0 and tsc 7.0.2 on the create-vite react-ts template.
