-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
"unmet peer dependency" warning shown for transitive dependency that npm accepts #4675
Comments
This also reproduces with yarn 1.2.1. |
This doesn't seem like a bug to me.
This plugin and the config are direct dependencies of |
But Is this just a workflow not very well supported by |
Perhaps a middle ground would be for yarn to only warn in this case if it wasn't hoisting? Since if hoisting occurs then it's not actually an issue - and for Neutrino (and other ecosystems that use a similar plugin system), the hoisting is actually necessary/expected otherwise nothing would work. |
@edmorley any chance you found a resolution to this issue? I'm using neutrino as well and it is frustrating to get a bunch of warnings we don't technically control. |
@mpolichette I haven't sadly. @BYK, what do you think about:
|
I think this is supposed to be fixed in v1.4.0... #5088 |
This issue is about cases where the dep isn't at root level intentionally, but will be after hoisting. So isn't fixed in the latest release. |
i seem to agree with this statement. |
Hi!
Do you want to request a feature or report a bug?
A bug.
STR:
rm -rf node_modules/ && yarn install
rm -rf node_modules/ && npm install
Expected:
package.json
.Actual:
The yarn output (example) includes:
...whereas the NPM output (example) contains no such warnings.
To save having to dig through the repo, the testcase's package.json contains:
...and the relevant child package's dependencies are as follows:
Please mention your node.js, yarn and operating system version.
yarn 1.2.0 / npm 5.4.2
node 8.6.0
Windows 10 x64 using MSYS2 bash.
Many thanks :-)
The text was updated successfully, but these errors were encountered: