Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. #11017
sobhardwaj
started this conversation in
General
Replies: 2 comments 1 reply
|
is the doc is updated with Typescript latest version ??? |
0 replies
|
This deprecation was introduced in TypeScript 5.5 and will become a hard error in TS 7.0. The fix: Replace baseUrl with properly relative paths: {
"compilerOptions": {
"paths": {
"@/components/*": ["./src/components/*"]
}
}
}Paths values must be relative to the tsconfig.json location - you no longer need baseUrl at all. To silence temporarily while migrating: {
"compilerOptions": {
"ignoreDeprecations": "5.0"
}
}Next.js and CRA generated baseUrl by default, so this affects almost all existing projects. Fix paths properly before TS 7.0 removes baseUrl entirely. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
All reactions