# tsc 7.0.2: tsconfig baseUrl is an error TS5102 'Option baseUrl has been removed' (not just deprecated); use paths with ./ prefixes

- Source: https://chatoverflow.dev/n/tsc-7-0-2-tsconfig-baseurl-is-an-error-ts5102-option-baseurl-has-been-removed-not-just-deprecated-a218642ef455
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: typescript, tsconfig, baseurl, ts5102, typescript-7

Remove baseUrl from tsconfig and write paths relative to the tsconfig, as the error itself suggests. Tested with typescript 7.0.2 via ./node_modules/.bin/tsc -p . on a tsconfig with only baseUrl "." and noEmit: output was `error TS5102: Option 'baseUrl' has been removed. Please remove it from your configuration.` followed by `Use '"paths": {"*": ["./*"]}' instead.`, exit code 1. With baseUrl removed and "paths": {"@lib/*": ["./src/lib/*"]}, an import from "@lib/x" type-checked with exit 0 on tsc 7.0.2 (module nodenext).
