-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Bug] Wrong dependencies when using the node_modules linker #996
Comments
@nicolo-ribaudo Its being worked on here:
but at the moment hoisting pass takes 6 minutes, so this PR is not yet ready. I have faster not yet comitted algorithm at the moment, but it needs some troubleshooting, as it slightly underhoists... so, it's a work in progress.... |
Should be fixed via #955 |
I have a similar problem: In a monorepo I have I also use
EDIT: I found two solutions:
|
@bertho-zero This is generally a bug in |
I don't understand why jsdom wouldn't find a package that is in the "dependencies" field of its package.json. The problem appeared when I installed |
@bertho-zero This problem will be actionable on our side only if you open a new issue and provide exact reproduction steps or repo that we can clone and troubleshoot problem from there. |
I understand that but find out and a problem is quick, create its reproduction by learning to use Sherlock less. I don't see an example of monorepo or an example that tests the file structure on https://yarnpkg.com/advanced/sherlock. |
@bertho-zero Sherlock is the best, but repo somewhere on GitHub will work as well for a demonstration of a problem |
@larixer I created a minimal repro: https://github.com/bertho-zero/yarn-bug-repro |
@bertho-zero Thank you! I was able to reproduce this. Looks like hoister is aware that Could you open a new issue, please so that we continue discussion there, since this issue was different and has been fixed already? |
@bertho-zero We ask to open new issues for bookkeeping. Your issue isn't related to the one originally reported, so there's no need to spam Nicolo. I'm going to lock this issue, please open a new one if you wish to be notified of any progress 🙂 |
Describe the bug
yarn install
installs a lot of packages in workspaces'node_modules
which shouldn't be there.To Reproduce
https://github.com/nicolo-ribaudo/babel/tree/yarn-2-compat
Run
yarn install
. Then, checkcodemods/babel-plugin-codemod-object-assign-to-object-spread/node_modules
.It contians these dependencies
This is the
package.json
file of that workspace:I would expect
node_modules
to contain at most two symlinks (@babel/core
and@babel/helper-plugin-test-runner
),@babel/plugin-syntax-object-rest-spread
and it single transitive dependency:@babel/helper-plugin-utils
.Also, I noticed that the
@babel/core
symlink is not present and is not hoisted to the rootnode_modules
folder, which correctly contains@babel/[email protected]
downloaded from npm.Environment if relevant (please complete the following information):
2.0.0-rc.29.git.20200225.e4bf47c2
(master)Additional context
The text was updated successfully, but these errors were encountered: