Skip to content

chore(frontend): drop deprecated baseUrl from tsconfig - #63

Merged
pratts merged 1 commit into
mainfrom
chore/frontend-drop-baseurl
Nov 20, 2026
Merged

pratts merged 1 commit into
mainfrom
chore/frontend-drop-baseurl

Conversation

@pratts

@pratts pratts commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Why

Editors that use TypeScript 6 (e.g. VS Code's bundled version) report on frontend/tsconfig.app.json:

error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.

Change

Remove "baseUrl": "." from tsconfig.json and tsconfig.app.json. Nothing depends on it:

  • TypeScript: since 4.1, paths resolves relative to the tsconfig without baseUrl, and ours are already ./src/*.
  • Vite: resolves @/ through its own alias in vite.config.ts.
  • shadcn: reads the alias from paths; npx shadcn info still reports importAlias @.

Not "ignoreDeprecations": "6.0": TypeScript is pinned to 5.9 (see frontend/CLAUDE.md), which only accepts "5.0" there, so npm run typecheck would fail.

Checks

  • TypeScript 6.0.3 (tsc -p … --noEmit): reports TS5101 on main; no errors with this change, for tsconfig.app.json and tsconfig.node.json.
  • TypeScript 5.9.3: npm run typecheck passes.
  • npm run lint, npm test (123) and npm run build pass.
  • e2e: not run, because there's no local backend on :3000. Only TypeScript path resolution changed, which typecheck and build cover.

🤖 Generated with Claude Code

TypeScript 6 reports TS5101: 'baseUrl' is deprecated and stops working
in TypeScript 7. It isn't needed: since TS 4.1 `paths` resolves relative
to the tsconfig without it, Vite has its own @ alias, and shadcn reads
the alias from `paths`. "ignoreDeprecations": "6.0" isn't an option
while TypeScript is pinned to 5.9, which only accepts "5.0".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pratts pratts self-assigned this Nov 20, 2026
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tts-study-assistant Ready Ready Preview Nov 20, 2026 8:21am UTC

@pratts
pratts merged commit ede9de8 into main Nov 20, 2026
16 checks passed
@pratts
pratts deleted the chore/frontend-drop-baseurl branch November 20, 2026 08:26

This branch was successfully deployed

1 active deployment
Preview — 68c17e2d Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant