microsoftgraph / microsoftgraph/msgraph-sdk-typescript

TypeScript 6.x.x bump

Open
#974 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:waiting-for-triage ToTriage
Dominant language
TypeScript
Stars
44
Forks
7
Avg merge
12h 40m
Merged PRs (30d)
5

Description

TypeScript 6.0 Build Failure Analysis

The build is failing across all Node matrix versions (18.x, 20.x, 22.x) with two deprecation errors that TypeScript 6.0 now treats as hard errors:

Error 1: TS5107moduleResolution=node10 is deprecated
  • Source: Root tsconfig.json"moduleResolution": "Node"
  • Inherited by: Every workspace package via packages/tsconfig.base.json
  • Fix: Update to "moduleResolution": "Node16" or "Bundler" in tsconfig.json
Error 2: TS5101baseUrl is deprecated
  • Source: Each workspace package's own tsconfig.json (e.g. packages/msgraph-sdk-users/tsconfig.json)
  • Current value: "baseUrl": "./" (used alongside paths for project references)
  • Fix: Remove baseUrl from all ~68 workspace tsconfigs. With moduleResolution: "Node16" or "Bundler", TypeScript resolves paths relative to the tsconfig location by default.
Recommended Changes

Option A — Proper migration (recommended):

  1. In tsconfig.json: change "moduleResolution": "Node""moduleResolution": "Node16" and "module": "ES6""module": "Node16"
  2. In all packages/*/tsconfig.json: remove the "baseUrl": "./" line
  3. Also consider removing "experimentalDecorators" and "emitDecoratorMetadata" from packages/tsconfig.base.json since these are deprecated in TS6 as well (TC39 decorators are now standard)

Option B — Quick unblock (temporary):
Add "ignoreDeprecations": "6.0" to the root tsconfig.json compilerOptions to suppress the errors. This buys time but the options will be removed in TypeScript 7.0.


Note: The baseUrl deprecation affects all ~68 workspace packages that follow the same tsconfig pattern. A script or bulk find-and-replace would be the most efficient approach for Option A.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the root tsconfig.json and packages/tsconfig.base.json, then inspect the package tsconfig.json files such as packages/msgraph-sdk-users/tsconfig.json. Review the TypeScript 6.0 TS5107 and TS5101 failures, apply the selected migration consistently across the workspace configurations, and verify that builds pass across the Node 18.x, 20.x, and 22.x matrix.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.