From 868821fd1747707f0414c56a134c206978048edd Mon Sep 17 00:00:00 2001 From: Dawson Toth Date: Mon, 13 Jul 2026 12:32:05 -0400 Subject: [PATCH] fix(templates): drop removed baseUrl option from TS tsconfigs The `baseUrl` compiler option is deprecated in TypeScript 6 (TS5101) and removed in TypeScript 7 (TS5102), so `tsc --noEmit` currently fails on the react-ts, react-ts-ssr, vue-ts, and vue-ts-ssr templates as shipped. Since TS 5.0 the `paths` mapping (`@/*` -> `./src/*`) resolves relative to tsconfig.json without `baseUrl`, and the Vite `@` alias is defined independently in vite.config.ts, so dropping `baseUrl` keeps `@/` imports working in both the type checker and the bundler. Verified with `tsc --noEmit` and `vite build` on generated projects. Co-Authored-By: Claude Opus 4.8 --- template-react-ts-ssr/tsconfig.json | 1 - template-react-ts/tsconfig.json | 1 - template-vue-ts-ssr/tsconfig.json | 1 - template-vue-ts/tsconfig.json | 1 - 4 files changed, 4 deletions(-) diff --git a/template-react-ts-ssr/tsconfig.json b/template-react-ts-ssr/tsconfig.json index 91def35..0bdb327 100644 --- a/template-react-ts-ssr/tsconfig.json +++ b/template-react-ts-ssr/tsconfig.json @@ -8,7 +8,6 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "jsx": "react-jsx", - "baseUrl": ".", "paths": { "@/*": [ "./src/*" diff --git a/template-react-ts/tsconfig.json b/template-react-ts/tsconfig.json index 91def35..0bdb327 100644 --- a/template-react-ts/tsconfig.json +++ b/template-react-ts/tsconfig.json @@ -8,7 +8,6 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "jsx": "react-jsx", - "baseUrl": ".", "paths": { "@/*": [ "./src/*" diff --git a/template-vue-ts-ssr/tsconfig.json b/template-vue-ts-ssr/tsconfig.json index a5db139..c5a55d1 100644 --- a/template-vue-ts-ssr/tsconfig.json +++ b/template-vue-ts-ssr/tsconfig.json @@ -7,7 +7,6 @@ "types": ["vite/client"], "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "baseUrl": ".", "paths": { "@/*": [ "./src/*" diff --git a/template-vue-ts/tsconfig.json b/template-vue-ts/tsconfig.json index a5db139..c5a55d1 100644 --- a/template-vue-ts/tsconfig.json +++ b/template-vue-ts/tsconfig.json @@ -7,7 +7,6 @@ "types": ["vite/client"], "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "baseUrl": ".", "paths": { "@/*": [ "./src/*"