Skip to content

[Bug?]: VS Code TS PnP integration appears to be broken #3788

@rcketscientist

Description

@rcketscientist

Self-service

  • I'd be willing to implement a fix

Describe the bug

After following the direction for setting up a project with VS Code typescript and pnp the IDE cannot find modules, for example:

Cannot find module 'react' or its corresponding type declarations.

To reproduce

https://github.com/rcketscientist/vs-code-pnp-test

Same behavior with a project from scratch:

  1. yarn init
  2. yarn add -D typescript @yarnpkg/sdks
  3. yard add react
  4. yarn tsc init
  5. yarn sdks vscode

Environment

System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 16.13.0 - C:\Users\ANTHON~1.MAN\AppData\Local\Temp\xfs-33e4d110\node.CMD
    Yarn: 3.1.0 - C:\Users\ANTHON~1.MAN\AppData\Local\Temp\xfs-33e4d110\yarn.CMD  
    npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD

Additional context

VS Code:

Version: 1.62.3 (user setup)
Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
Date: 2021-11-17T08:11:14.551Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions