Skip to content

Remove deprecated baseUrl from docusaurus tsconfig before TypeScript 7 #474

@bindsi

Description

@bindsi

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions