Describe the bug
tsc starts OOM'ing when bumping @modelcontextprotocol/sdk dependency version 1.17.5-> 1.25.1
To Reproduce
Steps to reproduce the behavior:
- git clone git@github.com:microsoft/playwright.git
- npm install
- npx tsc -p .
- See no errors.
- Update
@modelcontextprotocol/sdk dependency version 1.17.5-> 1.25.1 in package.json
- npm i
- npx tsc -p .
- The compiler takes a long a time to run and eventually crashes with OOM in v8.
Expected behavior
No errors.
Additional context
When running tsc for tests, it triggered these errors
[7] tests/mcp/browser.eval.ts(40,19): error TS2589: Type instantiation is excessively deep and possibly infinite.
[7] tests/mcp/browser.eval.ts(40,35): error TS2589: Type instantiation is excessively deep and possibly infinite.
Here is the PR microsoft/playwright#38581 that exposed the error on the bot.