-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] Peer dependency warnings are never seen when using legacy-peer-deps #6227
Comments
Good catch. You should also, ofc, not use legacy peer deps :-) |
+1 @ljharb. |
If you are discussing deprecating the flag then we should definitely fix this to throw warnings so that people can use those warnings to help inform them on how to resolve the conflicts and be aware how many issues are potentially building up by using the legacy flag. |
This just cost me hours of angry debugging because I didn't understand why my peer deps weren't installing and not even showing any warnings in the console. I eventually found that legacy-peer-deps has been silently enabled for months in the .npmrc of our project and everyone forgot about it because npm never tells you anywhere about it being enabled. However, even with knowing that option was enabled I still didn't understand why |
This. Same thing happened to us. One of our developers had silently enabled |
....Does anyone have any workaround, to get npm to display the peerDependencies that it's skipping? Edit: As a workaround, I did:
I hope that helps someone in the future. |
Adding Considering that fixing incorrect claims is obviously more complicated, I recommend fixing this first instead. Warnings are going to bother us and we'll be inclined to get rid of them, so it's going to be beneficial for the ultimate goal. |
It seems like They install a bit differently, not sure in what way, but seems to be a good workaround for now. |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When using legacy peer deps, npm no longer throws a warning for uninstalled peer dependencies.
Notice no warning for eslint-config-airbnb's peers.
Expected Behavior
You should see a warning. Notice that yarn throws a warning:
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: