-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Yarn ignores bundledDependencies
and copies all node_modules for file:
packages
#4532
Comments
Can you reproduce with Yarn 1.1.0? |
Most Do you think we can fix this somehow by not listing |
Why does this matter though? |
I think this is due to the |
So this is happening because when you use |
yarn install
adds peerDependency
twice in this examplebundledDependencies
and copies all node_modules for file:
packages
Turns out this is a duplicate of #3344 so closing in favor of that. |
Do you want to request a feature or report a bug?
This is a bug.
What is the current behavior?
In an example app from the Draft.js project, if I run
yarn install
I end up with bothnode_modules/react
andnode_modules/draft-js/node_modules/react
. The second is a duplicate, and causes the "Refs must have an owner" warningTo compare - if I
rm -rf node_modules && npm install
in that same directory, I do not end up withnode_modules/draft-js/node_modules/react
.If the current behavior is a bug, please provide the steps to reproduce.
If you clone the Draft.js github repo,
yarn install && yarn build
, and then follow theREADME
in theuniversal
example you should see the warning in the console and thenode_modules
situation I described above.What is the expected behavior?
Draft.js lists
react
as a peerDependency, so I don't expect it to be installed when there is a siblingreact
module innode_modules
.Please mention your node.js, yarn and operating system version.
I just updated Yarn to 1.0.2 and used
n
to run nodev4.8.4
.The text was updated successfully, but these errors were encountered: