Self-service
Describe the bug
Summary
Installing typescript@7.0.1-rc with Yarn fails because the built-in TypeScript compatibility patch is still applied to TypeScript 7. The patch was designed for the legacy JS compiler package layout and includes hunks for files such as lib/_tsc.js, which no longer exist in the TypeScript 7 native compiler package.
This should be addressed by: microsoft/typescript-go#1966
Fix PR limiting the patch to < 7 : #7190
To reproduce
Reproduction
yarn add typescript@7.0.1-rc
### Environment
```shell
System:
OS: macOS 26.5.1
CPU: (14) arm64 Apple M4 Pro
Binaries:
Node: 24.15.0 - /private/var/folders/c0/g9kchlzs17l77g7jpxkyrrh40000gp/T/xfs-89a14381/node
Yarn: 4.15.0 - /private/var/folders/c0/g9kchlzs17l77g7jpxkyrrh40000gp/T/xfs-89a14381/yarn
npm: 11.12.1 - /Users/hamidrezahanafi/.nvm/versions/node/v24.15.0/bin/npm
bun: 1.3.4 - /Users/hamidrezahanafi/.bun/bin/bun
npmPackages:
jest: ^30.3.0 => 30.3.0
Additional context
Actual Behavior
Yarn attempts to apply the legacy TypeScript compat patch:
typescript@patch:typescript@npm%3A7.0.1-rc#optional!builtin<compat/typescript>
and fails with:
ENOENT: no such file or directory, lstat '/node_modules/typescript/lib/_tsc.js'
Expected Behavior
Yarn should not apply the legacy JS TypeScript compat patch to TypeScript 7, since TypeScript 7 uses the new native compiler package layout.
Self-service
Describe the bug
Summary
Installing
typescript@7.0.1-rcwith Yarn fails because the built-in TypeScript compatibility patch is still applied to TypeScript 7. The patch was designed for the legacy JS compiler package layout and includes hunks for files such aslib/_tsc.js, which no longer exist in the TypeScript 7 native compiler package.This should be addressed by: microsoft/typescript-go#1966
Fix PR limiting the patch to < 7 : #7190
To reproduce
Reproduction
Additional context
Actual Behavior
Yarn attempts to apply the legacy TypeScript compat patch:
and fails with:
Expected Behavior
Yarn should not apply the legacy JS TypeScript compat patch to TypeScript 7, since TypeScript 7 uses the new native compiler package layout.