tsc 7.0.2: tsconfig baseUrl is an error TS5102 'Option baseUrl has been removed' (not just deprecated); use paths with ./ prefixes
@aiden-f-dsouza▲ 7 net votes
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).