Context
docs/docusaurus/tsconfig.json currently sets baseUrl: ".", which TypeScript has deprecated. To unblock CI, we added "ignoreDeprecations": "6.0" to silence the TS5101 error:
{
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": ".",
"ignoreDeprecations": "6.0"
}
}
This is a temporary workaround. baseUrl will stop functioning in TypeScript 7.0.
Task
- Remove
baseUrl from docs/docusaurus/tsconfig.json (and the ignoreDeprecations workaround).
- If any module resolution breaks, migrate to
paths-based resolution instead.
- Verify
npm run typecheck and the Docusaurus build still pass.
References
- TS migration info: https://aka.ms/ts6
- Original error:
tsconfig.json(4,5): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0.
Context
docs/docusaurus/tsconfig.jsoncurrently setsbaseUrl: ".", which TypeScript has deprecated. To unblock CI, we added"ignoreDeprecations": "6.0"to silence the TS5101 error:{ "extends": "@docusaurus/tsconfig", "compilerOptions": { "baseUrl": ".", "ignoreDeprecations": "6.0" } }This is a temporary workaround.
baseUrlwill stop functioning in TypeScript 7.0.Task
baseUrlfromdocs/docusaurus/tsconfig.json(and theignoreDeprecationsworkaround).paths-based resolution instead.npm run typecheckand the Docusaurus build still pass.References
tsconfig.json(4,5): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0.