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
[Question] dependencies of dependencies are not installed into node_modules #297
Comments
Hi @rotemmiz, thanks for putting together such a thorough report. This is expected behavior for Lerna, given the current linking strategy for dependencies within the repo. What negative impact is this having for you? |
I get negative impact from that linking strategy :) I have two projects: A and B where A depends on B (A needs B). Both A and B contain React as a dependency. Executing "lerna bootstrap" installs React both on A and B. When running project A I get an exception that resulted from multiple versions of React. I believe I miss something or I don't use the best approach for my situation and I appreciate a solution if there is one. |
I also kind of see this as an issue. Here is a real world example: Package A depends on "react" externally (via "dependencies" in package.json)
|
It is not. For react, hoisting to the monorepo root is the correct solution. |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I noticed that
lerna bootstrap
does not install dependencies are not installed into node_modules.Let's say I have two projects in my repo:
direct-dependency had
lodash
as a dependency.running
lerna bootstrap
will not install lodash inmain-project/node_modules
I have prepared a demo setup:
https://github.com/rotemmiz/lerna-dependency-issue-demo
The text was updated successfully, but these errors were encountered: