Uh oh!
There was an error while loading. Please reload this page.
fix(cli-config): include peer dependencies when finding dependencies - #2423
Conversation
tido64
commented
Jun 21, 2024
szymonrybczak
left a comment
There was a problem hiding this comment.
Thank you! Maybe let's add some tests? :)
TMisiukiewicz
commented
Jul 3, 2024
I was trying to test it, but couldn't see any change in the |
tido64
commented
Jul 4, 2024
The repro steps include running |
tido64
commented
Sep 19, 2024
@TMisiukiewicz: Anything I can help with to move this forward? |
TMisiukiewicz
commented
Sep 20, 2024
@tido64 I just want to clarify, what if you use a package manager that does not install peer dependencies automatically e.g. yarn classic? It would probably still not resolve the dependency properly? |
tido64
commented
Sep 20, 2024
That isn't the issue here though? The issue is that the config algorithm doesn't consider And to answer your question: IIRC, if a peer dependency is not installed (in case of Yarn classic, or maybe it's optional), CLI fails to resolve it and it is ignored. |
TMisiukiewicz
left a comment
There was a problem hiding this comment.
Thanks for clarification! 👍
Summary:
configcurrently ignorespeerDependenciesand instead readsdevDependencies, leading to missing dependencies.Resolves#2419.
Test Plan:
In any project, run the following:
Checklist