-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[addon-contexts] Should I add global and qs to my package.json? #7625
Comments
@shilman, I actually have the same question on package management here. Should we remove the entire |
@leoyli I think it's fine to put them as regular dependencies in this case. We should use peer deps when we want to use the user's version. But I don't think it matters in this case? |
@shilman, I think we should use it from @storybook/core, like |
@leoyli how do you propose we use it from typically we just make sure the versions more or less line up across packages in the monorepo and then trust that npm/yarn will do the right thing to dedupe. in other words adding at as a direct dep of the package shouldn't add any extra overhead unless the version is radically different than |
I see that now in storybook 5.1.10,
I'm not entirely sure how to solve that one, you definitely wouldn't want all |
@leoyli why are these peer dependencies at all? i don't see them imported anywhere in addon-contexts. i think this is a bug. |
@shilman.... well I see you the person added it: It defiantly should not be there, it just meant to make sure the tarball can be built as a optional dependencies. And I can shape a PR to change this altogether as soon as tonight. |
@leoyli hahaha well you also see why then 😘 thanks for picking this up 🙇 |
Gadzooks!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.1 containing PR #7675 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
@sjiep That's pretty weird. Perhaps some bad conflict resolution at some point? I'm reopening & will try to re-apply these changes to both |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey @shilman , did you ever get a chance to try to re-apply the changes? I can't actually find the commit that adds back the peer deps. Would love to be able to use this addon without needing to install packages I don't actually use (my company unfortunately runs Let me know if you need any help with this, or if a new PR would be helpful. |
@ahuth sorry this fell through the cracks. a new PR would be helpful! Also, FWIW, I plan to deprecate https://github.com/storybookjs/storybook/tree/next/addons/toolbars |
No worries! Also, the toolbars addon looks perfect 👍 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Still running into this, what would you want a PR for @shilman? Just the removal of the peer dependencies? |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Describe the bug
When adding the context addon package to my project as suggested in the README. I receive the following warning from yarn:
It appears that these two packages are listed as peer dependencies in the
package.json
of@storybook/[email protected]
. However the README doesn't mention that these two package should be installed 'manually'.Expected behavior
When following the README instructions, not to be left with warnings from yarn.
Either the README should mention we should install these packages together with the addon, or these packages should be added as real dependencies of the addon, not just peer dependencies.
System:
The text was updated successfully, but these errors were encountered: