-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Bug?]: TypeScript integration not resolving with PnP #6124
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I would be willing to implement a fix but at the moment, I'm quite unfamiliar with yarn. |
I think the problem might also be in my tsconfig.json:
|
I've worked around this issue by temporarily changing |
Are you both working on the same project, or is your issue separate from the OP @dtrunk90? @jarimustonen it might be that your Yarn version doesn't have the relevant patches for the version of TypeScript you're using. Try |
The symptoms are the same. I also followed the sdk instructions but the issue was still there. Maybe there's a bug in detecting typescript in |
Can you please try the fix I recommended and see if it works for you? |
@dtrunk90
note I have run into this problem several times before with several typescript releases. For now I recommend sticking with I really appreciate the people behind yarn keeping this stuff working, but it seems PnP mode will not catch on given other bundlers are not willing to be as strict as yarn. I am considering turning it off in my projects. |
I'm on Linux |
@dtrunk90 it could be the patch is required on linux as well, I am not 100% sure |
Not exactly - TS doesn't support PnP resolution out of the box, so we need to apply this PR, which we keep maintaining as new TS makes new releases. This is required on all systems. The fsevents patch is a separate thing: fsevents is a native dependency, so it directly performs syscalls that aren't aware of the virtual filesystem Yarn applies on top of the physical one. As a result it also needs a patch to work well. |
@arcanis Thanks for the explanation, I guess I got both issues confused in my head. I can imagine how much work it is to get PnP mode working in the ecosystem and greatly appreciate your and other yarn maintainers efforts. I will keep an eye out on that PR. |
Uh oh!
There was an error while loading. Please reload this page.
Self-service
Describe the bug
My project uses Yarn PnP with the problem being that VS Code does not find any of the types.
The website provides instructions on fixing this: https://yarnpkg.com/getting-started/editor-sdks
After the instructed steps:
yarn dlx @yarnpkg/sdks vscode
The problem persists. VS Code does not find any of the type definitions.
To reproduce
See above.
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: