[addon-centered] Peer dependencies
See original GitHub issueDescribe the bug
The @storybook/addon-centered
package has the following peerDependencies
:
{
"peerDependencies": {
"mithril": "*",
"preact": "*",
"react": "*"
}
}
Meaning installing it will always add 2-3 annoying warnings to a project. You’ll never have more than 1 of those installed at the same time, and you can even use the addon without any of them.
Expected behavior
A package should not have peerDependencies
that can’t/won’t ever be met. Please find a better solution (optionalDependencies
?), or just remove the peerDependencies
all together in this case.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Understanding Peer Dependencies in JavaScript
When to use peerDependencies? Peer dependencies really come into play when you're developing code that will be used by others, such as plugins ......
Read more >@storybook/addon-centered@5.3.21 - jsDocs.io
Documentation for npm package @storybook/addon-centered@5.3.21 - jsDocs.io. ... Index; Files; Dependencies (Dev, Peer); Badge; Versions ...
Read more >What are peer dependencies in a Node module? - Flavio Copes
A simple explanation of the peerDependencies field in the package.json file.
Read more >peerDependencies - Code Search
Results 1 - 1 of 1 for peerDependencies (11.69 sec). organization; storybookjs 1 ... Addon-centered/contexts: Move optionalDependencies to peerDependencies ...
Read more >@boomerang-io/carbon-addons-boomerang-react - npm
v2 · Move @carbon/icons-react to a peer dependency · Move carbon-icons to a peer dependency · Remove @carbon/elements as a dependency · No...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @leoyli here you go go go!! 🚀
@Svish, yes fixed, stay tune 👀