Multiple dependency versions causing yarn dependency warning [Bug?] #5342
Unanswered
seanblonien
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected behaviour: No yarn warnings when there are multiple version of the same package
Actual behaviour: Yarn install warnings incorrectly warn about a missing peer dependency that is provided
reproduction in yarn v3 playground
Creating this discussion directly out of this: backstage/backstage#16982
This
@backstage
project has the need to support two different versions of@rjsf/material-ui
, and has tried to rename the dependencies with-v5
resolving to compatible v5 versions, but yarn can't recognize the different version because internally the@rjsf/material-ui
and@rjsf/material-ui-v5
dependencies refer to the same name of@rjsf/core
which only resolves to one version (3.2.1 in this case) causing the warningHow do we tell yarn in the original
package.json
file of one of these@backstage
packages how to resolve the ambiguous@rjsf/core
?Or, if there is nothing that can be done for the
package.json
file of the package in the first place, how could we use.yarnrc.yml
'spackageExtensions
property to force resolve?This
.yarnrc.yml
configuration did not make the warning go away:yarn install
warning:@arcanis tagging a maintainer for visibility
Beta Was this translation helpful? Give feedback.
All reactions