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

sb doesn't support dev / build command #18420

Closed
RodrigoTomeES opened this issue Jun 6, 2022 · 8 comments
Closed

sb doesn't support dev / build command #18420

RodrigoTomeES opened this issue Jun 6, 2022 · 8 comments

Comments

@RodrigoTomeES
Copy link

RodrigoTomeES commented Jun 6, 2022

Describe the bug
When using Storybook v.7.0.1 Alpha you need to use sb (#17899) to run storybook but sb doesn't cotains dev / build command.

To Reproduce
npx sb@next upgrade --prerelease

System

Environment Info:

  System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1 Pro
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.15 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 102.0.5005.61
    Firefox: 101.0
    Safari: 15.5
  npmPackages:
    @storybook/addon-a11y: ^7.0.0-alpha.1 => 7.0.0-alpha.1 
    @storybook/addon-actions: ^7.0.0-alpha.1 => 7.0.0-alpha.1 
    @storybook/addon-docs: ^7.0.0-alpha.1 => 7.0.0-alpha.1 
    @storybook/addon-essentials: ^7.0.0-alpha.1 => 7.0.0-alpha.1 
    @storybook/addon-links: ^7.0.0-alpha.1 => 7.0.0-alpha.1 
    @storybook/addon-postcss: ^2.0.0 => 2.0.0 
    @storybook/builder-webpack5: ^7.0.0-alpha.1 => 7.0.0-alpha.1 
    @storybook/manager-webpack5: ^7.0.0-alpha.1 => 7.0.0-alpha.1 
    @storybook/react: ^7.0.0-alpha.1 => 7.0.0-alpha.1 

imagen

imagen

@shilman
Copy link
Member

shilman commented Jun 7, 2022

You need to use sb@7.0.0-alpha.x also. We'll be adding an automigration to install it in your project.

@RodrigoTomeES
Copy link
Author

@shilman hi thanks! I tried to install it using npx sb@next upgrade --prerelease but it doesn't update sb and I didn't see the update to 7.0.1 in npm. I will to force the update, thanks!

@shilman
Copy link
Member

shilman commented Jun 7, 2022

@RodrigoTomeES sorry for the hassle -- we'll be fixing this all with automigrations etc. coming soon

@RodrigoTomeES
Copy link
Author

@shilman great thanks!

@unicornware
Copy link

unicornware commented Jul 9, 2022

having the same issue using version 7.0.0-alpha.12.

sb@7.0.1 doesn't seem to exist:

➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: sb@npm:7.0.1: No candidates found
    at le (/Users/lex/Projects/FLDV/FLDV-P017/.yarn/releases/yarn-3.2.1.cjs:442:7864)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.allSettled (index 122)
    at async uo (/Users/lex/Projects/FLDV/FLDV-P017/.yarn/releases/yarn-3.2.1.cjs:395:10390)
➤ YN0000: └ Completed in 0s 592ms
➤ YN0000: Failed with errors in 0s 600ms

installing sb@7.0.0-alpha.12 doesn't work either.

how can i run storybook 7? is waiting on new auto migrations required? @shilman

@shilman
Copy link
Member

shilman commented Jul 9, 2022

Typo, sorry. Fixed

@unicornware
Copy link

no problem and thanks for the quick response! i ended up installing @storybook/cli@7.0.0-alpha.12 and i just realized my actual issue is running sb dev from the command line, rather than via yarn (sb dev --ci --port 3001 vs yarn dev).

would you happen to know if that's an issue on my end or just something to do with how the cli is implemented? @shilman

@shilman
Copy link
Member

shilman commented Jun 8, 2023

We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:

@shilman shilman closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
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

3 participants