-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
adding react-dom to addon peer dependencies #1179
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1179 +/- ##
=======================================
Coverage 14.07% 14.07%
=======================================
Files 200 200
Lines 4497 4497
Branches 506 501 -5
=======================================
Hits 633 633
- Misses 3436 3440 +4
+ Partials 428 424 -4
Continue to review full report at Codecov.
|
I don't understand this @danielduan -- if we aren't removing it from other dependencies, what exactly will it do? Also, do all those packages use |
As for adding Say someone's project is on |
I think if it's in
Can we talk through the exact scenario this helps with? The thing is that peer deps in npm are just pretty much broken (especially when you So as a illustrative example: The actions addon currently lists
If we add the Case 2 will be unaffected by the peer dep thing, sadly. I'm not quite sure what my point is, probably just ranting about npm. I think I am saying (1) let's not add the |
Thanks for the really detailed analysis, really appreciate it. I'm not an expert in how npm resolves modules and this definitely helped my understanding. I updated the branch to just include |
But do these package actually need |
Yeah, seems like they're extraneous. Should have checked to see if they actually used it first. Closing. |
Issue: There could be different versions of running in Storybook because some addons don't rely on peer dependencies to get the correct version number.
It could be related to this:
#986
What I did
Updated some
package.json
How to test
Please pull the branch and help me test this in your own storybook to see if there are any issues.