Skip to content
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

Upgrading to 6.2.7 triggers several outdated dependency warnings for @storybook/addon-a11y #14569

Closed
stephiescastle opened this issue Apr 12, 2021 · 2 comments

Comments

@stephiescastle
Copy link

Describe the bug

I was on v6.2.5 and used npx sb@latest upgrade to upgrade to v6.2.7.

Everything worked fine except now I see a long list of warnings about outdated dependencies for @storybook/addon-a11y:

WARN Found 24 outdated packages (relative to '@storybook/addon-a11y@6.2.7')
WARN Please make sure your packages are updated to ensure a consistent experience.
WARN - @storybook/api@6.2.3
WARN - @storybook/channels@6.2.3
WARN - @storybook/client-logger@6.2.3
WARN - @storybook/core-events@6.2.3
WARN - @storybook/router@6.2.3
WARN - @storybook/client-logger@6.2.3
WARN - @storybook/theming@6.2.3
WARN - @storybook/components@6.2.3
WARN - @storybook/client-logger@6.2.3
WARN - @storybook/theming@6.2.3
WARN - @storybook/core-events@6.2.3
WARN - @storybook/theming@6.2.3
WARN - @storybook/client-logger@6.2.3
WARN - @storybook/api@6.2.1
WARN - @storybook/channels@6.2.1
WARN - @storybook/client-logger@6.2.1
WARN - @storybook/core-events@6.2.1
WARN - @storybook/router@6.2.1
WARN - @storybook/client-logger@6.2.1
WARN - @storybook/theming@6.2.1
WARN - @storybook/client-logger@6.2.1
WARN - @storybook/components@6.2.1
WARN - @storybook/client-logger@6.2.1
WARN - @storybook/theming@6.2.1

To Reproduce
Steps to reproduce the behavior:

  1. run npx sb@latest upgrade on a storybook that uses @storybook/addon-a11y. Even if you've already upgraded to 6.2.7, the same warnings will be triggered each time.

Expected behavior
Shouldn't get any dependency warnings about @storybook/addon-a11y

System
Please paste the results of npx sb@next info here.

Environment Info:

  System:
    OS: macOS 10.15.7
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  Binaries:
    Node: 14.4.0 - ~/.nvm/versions/node/v14.4.0/bin/node
    Yarn: 1.22.10 - ~/repos/www-frontend/node_modules/.bin/yarn
    npm: 6.14.5 - ~/.nvm/versions/node/v14.4.0/bin/npm
  Browsers:
    Chrome: 89.0.4389.114
    Edge: 89.0.774.75
    Firefox: 78.9.0
    Safari: 14.0.3
  npmPackages:
    @storybook/addon-a11y: ^6.2.7 => 6.2.7 
    @storybook/addon-actions: ^6.2.7 => 6.2.7 
    @storybook/addon-backgrounds: ^6.2.7 => 6.2.7 
    @storybook/addon-controls: ^6.2.7 => 6.2.7 
    @storybook/addon-docs: ^6.2.7 => 6.2.7 
    @storybook/addon-links: ^6.2.7 => 6.2.7 
    @storybook/addon-storyshots: ^6.2.7 => 6.2.7 
    @storybook/addon-storysource: ^6.2.7 => 6.2.7 
    @storybook/addon-viewport: ^6.2.7 => 6.2.7 
    @storybook/addons: ^6.2.7 => 6.2.7 
    @storybook/vue: ^6.2.7 => 6.2.7 
@shilman
Copy link
Member

shilman commented Apr 13, 2021

I suspect there are multiple versions installed and the warning is actually correct. What gets shown when you run:

yarn why @storybook/api

@stephiescastle
Copy link
Author

Ah, yes that explains it. I'm using a couple of packages that list older versions as dependencies. I don't use yarn, but doing npm ls @storybook/api gives me:

my-repo@1.0.0
├─┬ @storybook/addon-a11y@6.2.7
│ └── @storybook/api@6.2.7 
├─┬ @storybook/addon-actions@6.2.7
│ └── @storybook/api@6.2.7 
├─┬ @storybook/addon-backgrounds@6.2.7
│ └── @storybook/api@6.2.7 
├─┬ @storybook/addon-controls@6.2.7
│ └── @storybook/api@6.2.7 
├─┬ @storybook/addon-docs@6.2.7
│ ├── @storybook/api@6.2.7 
│ └─┬ @storybook/builder-webpack4@6.2.7
│   ├── @storybook/api@6.2.7 
│   └─┬ @storybook/ui@6.2.7
│     └── @storybook/api@6.2.7 
├─┬ @storybook/addon-storysource@6.2.7
│ └── @storybook/api@6.2.7 
├─┬ @storybook/addon-viewport@6.2.7
│ └── @storybook/api@6.2.7 
├─┬ @storybook/addons@6.2.7
│ └── @storybook/api@6.2.7 
├─┬ @whitespace/storybook-addon-html@5.0.0
│ └── @storybook/api@6.2.1 
└─┬ storybook-addon-themes@6.1.0
  └── @storybook/api@6.2.3 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants