Fix TypeScript 6 build failure: migrate to moduleResolution: bundler#39
Merged
Merged
Conversation
d3b81c5 to
1b8a690
Compare
1b8a690 to
cbf983d
Compare
97b2917 to
6f34822
Compare
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.9.3...v6.0.3) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
6f34822 to
ea2d3ac
Compare
auto-merge was automatically disabled
May 22, 2026 09:29
Head branch was pushed to by a user without write access
Copilot
AI
changed the title
deps-dev(deps-dev): bump typescript from 5.9.3 to 6.0.3
Fix TypeScript 6 build failure: migrate to moduleResolution: bundler
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI test job failed during
npm cibecause TypeScript 6 deprecatedmoduleResolution: "Node"(node10) and now errors without migration or an ignore flag.Changes
Migrated
moduleResolution:"Node"→"bundler""bundler"is the recommended setting for modern ESM projects in TS6+Added
"types": ["node"]to ensure Node.js built-in APIs (process, fs, path, url) resolve correctly during compilationContext
Before TypeScript 6,
moduleResolution: "Node"(node10 algorithm) was the default. TS6 deprecates this in favor of:"bundler"- for modern bundled/ESM projects"node16"/"nodenext"- for strict Node.js CJS/ESM resolutionSince this project uses
"type": "module"and"module": "ESNext","bundler"is the appropriate choice.