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

error while useing pnp / yarn v2 (berry) #111

Closed
mathe42 opened this issue May 30, 2021 · 4 comments
Closed

error while useing pnp / yarn v2 (berry) #111

mathe42 opened this issue May 30, 2021 · 4 comments

Comments

@mathe42
Copy link

mathe42 commented May 30, 2021

I get some Errors:

  ✖    1:31  Cannot find module lit or its corresponding type declarations.
  ✖    2:31  Cannot find module lit or its corresponding type declarations.
  ✖  189:14  Cannot find module @vue/reactivity or its corresponding type declarations.
  ✖  190:14  Cannot find module lit or its corresponding type declarations.

I use yarn v2 with pnp.

No problem with tsc / typescript.

Any thoughts on how to solve it?

@sindresorhus
Copy link
Collaborator

Does tsd work fine when installing with npm? If yes, then it's a Yarn v2 problem and should be reported over at https://github.com/yarnpkg/berry instead.

@mathe42
Copy link
Author

mathe42 commented Jun 2, 2021

Somehow it works now... Strange... :/

@erikbrinkman
Copy link

Ran into this, and checked on yarn. It was posted there and they mentioned it being an issue with tsd's internally bundled typescript. I'm not familiar with the way that tsd uses it's included typescript, but does that at least warrant opening this back up, or is your stance that pnp should be able to handle resolution in that scenario?

@erikbrinkman
Copy link

I've since found @yarnpkg/pnpify that allows this to work, so it can safely stay closed.

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

3 participants