Skip to content

[Bug?]: Removing types not gives any warning in pnp mode #7136

@senpl

Description

@senpl

Self-service

  • I'd be willing to implement a fix

Describe the bug

When I specify types without dependency their not present after successful yarn install

To reproduce

  1. in package.json add dependency or devDependency add:
    "@types/k6": "^2.0.0",
  2. yarn install (no warning, no errors, their just not present)
  3. Types are not present in node_modules or any other way that is visible to vscode.
  4. adding file .yarnrc.yml as described in (https://stackoverflow.com/questions/60012394/how-to-turn-off-yarn2-pnp) solve the issues.

Environment

System:
    OS: Windows 11 10.0.26200
    CPU: (14) x64 Intel(R) Core(TM) Ultra 5 125U
  Binaries:
    Node: 24.15.0 - C:\Users\MICHAU~1\AppData\Local\Temp\xfs-1f0fbb20\node.CMD
    Yarn: 4.14.1 - C:\Users\MICHAU~1\AppData\Local\Temp\xfs-1f0fbb20\yarn.CMD
    npm: 11.12.1 - C:\Program Files\nodejs\npm.CMD

Additional context

Simplest fix would be to warn that types will not be installed. Ideal would be to keep this types as I clearly indicated I need them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwaiting for feedbackWill autoclose in a while unless more data are provided

    Type

    No type
    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