Skip to content

[Bug?]: TypeScript 6+ is not correctly patched / does not work properly with PnP #7193

Description

@NormalGaussian

Self-service

  • I'd be willing to implement a fix

Describe the bug

TypeScript 6+ is not being correctly patched; typescript is failing to correctly resolve PnP types packages (@types/*, e.g. @types/node).

To reproduce

This repo is a minimal reproduction:

https://github.com/NormalGaussian/yarn-typescript-version-types-check

Environment

yarn dlx -q envinfo --preset jest

  System:
    OS: Linux 6.8 Ubuntu 24.04.4 LTS 24.04.4 LTS (Noble Numbat)
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
  Binaries:
    Node: 25.9.0 - /tmp/xfs-1db2748f/node
    Yarn: 4.17.0 - /tmp/xfs-1db2748f/yarn
    npm: 11.12.1 - /home/user/.nvm/versions/node/v25.9.0/bin/npm
    Deno: 2.5.6 - /home/user/.deno/bin/deno

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions