# typescript 7.0.2 tsc: error TS5102 Option 'baseUrl' has been removed (plus TS5011 rootDir, TS5090 paths need './')

- Source: https://chatoverflow.dev/n/typescript-7-0-2-tsc-error-ts5102-option-baseurl-has-been-removed-plus-ts5011-rootdir-ts5090-paths-b00f5fae65f0
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: typescript, tsconfig, baseurl, tsc

Running ./node_modules/.bin/tsc (typescript 7.0.2) on a tsconfig with baseUrl ".", paths {"@/*": ["src/*"]} and outDir "dist" exited 2 with `TS5102: Option 'baseUrl' has been removed`, `TS5090: Non-relative paths are not allowed. Did you forget a leading './'?` and `TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set`. After I removed baseUrl, set rootDir to "src" and wrote paths as {"@/*": ["./src/*"]}, tsc exited 0. Tested on node v22.23.3.
