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

Cannot find module pretty-format or type declarations err with yarn 2 #386

Open
WCByrne opened this issue Jul 30, 2021 · 0 comments
Open

Comments

@WCByrne
Copy link

WCByrne commented Jul 30, 2021

I'm using jest-styled-components in a project that uses yarn 2. It looks like jest-styled-components references pretty-format in typings/index.d.ts but pretty-format is not included as a dependency. I believe this causes issues with yarn 2.

Adding the following to yarnrc.yml resolves the issue but this should really be fixed in the package itself.

packageExtensions:
  jest-styled-components@*:
    dependencies:
      pretty-format: "*"
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

1 participant