-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
peerDepdencies of a used package not considered #341
Comments
Hey, I see that you created a test module, could you push it on github please? You talk about |
There's not anything more to add then what I included in the bug and I just realized that I had a typo in the original submission. I meant to write |
Understood, thanks for reporting this, we don’t look at peer dependencies, we should I guess |
I'm going to close this one since we already support and have a test for peer dependencies. If you still have problems please open a new issue with a reproducible repo. Thanks |
The file in the original comment reproduces the issue. |
@dave-nm I just made a test with Cheers. |
Keep in mind that, in order for peer dependencies to work, you need to do a If there are no |
You're right. The issue was that my |
Nice! Thanks for updating the issue ^^ |
I just realized what the actual problem is. We're using yarn workspaces, so the |
This still appears to be a problem. My project has a peer dependency on
However,
|
@robross0606 could you open a new issue and provide a repository reproducing this error please? |
Bug Description
A package that's only in
peerDependencies
of a used package is still marked as unused even though it really is used.Code snippets
Where the dependency is used:
Where the dependency is listed in package.json:
Versions
node -v
: v10.15.2npm -v
: 6.4.1depcheck --version
: 0.7.2Extra info
If you remove
jsdom
frompackage.json
, thenyarn install
gives the following error and the code doesn't work:json output:
The text was updated successfully, but these errors were encountered: