How to figure out why package is not hoisted in yarn3 monorepo? #4472
Unanswered
AndriiTsarenko
asked this question in
Q&A
Replies: 1 comment
-
Based on a discussion on StackOverflow the hoisting, in this case, was prevented due to Yarn's core auto-adding of peer dependencies on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
yarn 3
monorepo and for some reason, thereact-dom
package is not hoisted properly: The same version ofreact-dom
is duplicated across packages.I have the next resolutions in root
package.json
I read that package could be prevented from hoisting because of wrong peer dependencies, but seems that everything is a correct and hoisted version of
react
is meeting the peer dependency requirement of react-dom:Also, I've trying to do yarn dedupe and it's not helping.
Can you suggest any tool or approach how to debug why a package is not hoisted, with yarn 3?
Asked this question on StackOverflow also.
Beta Was this translation helpful? Give feedback.
All reactions