Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there are lot of import typescript errors with yarn2 #36460

Closed
budarin opened this issue Jan 27, 2020 · 4 comments
Closed

there are lot of import typescript errors with yarn2 #36460

budarin opened this issue Jan 27, 2020 · 4 comments

Comments

@budarin
Copy link

budarin commented Jan 27, 2020

TS Template added by @mjbvz

TypeScript Version: 3.7.5

Search Terms

  • yarn, yarn2
  • pnp

  • VSCode Version: 1.41.1
  • OS Version: MacOs 10.15.2 (19C57)

Steps to Reproduce:

  1. setup dependencies and their @types/ packages with yarn2
  2. open any typescript file with imports
  3. some imports are marked as error as untyped while their @types are setup

Does this issue occur when all extensions are disabled?: Yes/No
yes

@Yovach
Copy link

Yovach commented Jan 27, 2020

Do you have tried https://next.yarnpkg.com/advanced/editor-sdks#vscode ?

@budarin
Copy link
Author

budarin commented Jan 27, 2020 via email

@mjbvz mjbvz transferred this issue from microsoft/vscode Jan 27, 2020
@mjbvz mjbvz removed their assignment Jan 27, 2020
@orta
Copy link
Contributor

orta commented Jan 27, 2020

This can be considered a dupe of both #28289 and #35206

TS doesn't support the PnP style module resolution unless you go through the yarn pnpify tooling.

@budarin budarin closed this as completed Jan 28, 2020
@macabeus
Copy link

macabeus commented Feb 19, 2020

@orta Thank you for reply, but is there some plan to TS support PnP?

At least there is this open PR: #35206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants