-
-
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
sh: start-storybook: command not found after upgrading to latest release #18923
Comments
I should also add, I have tried to remove node_modules and re-install etc etc. |
I had this issue too, and discovered in the v7 release notes that I had to install |
If you have upgraded to storybook 7 and found yourself here then the problem is start-storybook is removed and the migration doesn't modify for some reason. To fix modify your scripts to;
Also check out the migration guide - https://github.com/storybookjs/storybook/blob/4a532ec8d8922ddf6b7a7e1cc68d88b35377b0a6/MIGRATION.md#start-storybook--build-storybook-binaries-removed I was missing some things |
Brilliant, I have some run time errors- however this has helped a lot! |
Awesome! Thanks, having a read through and it helped loads. Thanks again, Brian. |
Awesome! Happy to help with the runtime errors if you are still stuck, feel free to reach out. |
I am going to swiftly take you up on that offer. we are using TSX in our app and it seems to have some conflicting issues with the upgrade. The new script runs fine and begins to build. |
@zackhamin check out this https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-type-change-to-storyfn-and-the-new-story-type-now-refers-to-storyobj I think you need to go from
to
note the StoryFn |
This sorted me out. caveat: I did blindly accept all the changes
|
Closing this. Please follow the migration instructions to upgrade: https://storybook.js.org/migration-guides/7.0 |
Run |
Thanks @Abeinevincent . it helped me a lot |
Thanks @Abeinevincent, It works well. |
Youre welcome |
I tried following the migration guide and when I run that upgrade command and the result is:
|
Check if that your storybooks versions are the same on the |
Describe the bug
I upgraded our version of Storybook in our React project to the latest version ^6.5
Afterwards I have the following issue when trying to run Storybook -
sh: start-storybook: command not found
Using a Macbook.
Then upgraded to pre-release to see if it resolved.
To Reproduce
Upgrade Storybook and try to run it.
System
Environment Info:
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
npm: 8.17.0 - ~/Desktop/customer_contact_work/cc-component-library/node_modules/.bin/npm
Browsers:
Chrome: 104.0.5112.79
Safari: 15.2
npmPackages:
@storybook/addon-actions: ^7.0.0-alpha.18 => 7.0.0-alpha.19
@storybook/addon-essentials: ^7.0.0-alpha.18 => 7.0.0-alpha.19
@storybook/addon-links: ^7.0.0-alpha.18 => 7.0.0-alpha.19
@storybook/builder-webpack5: ^7.0.0-alpha.18 => 7.0.0-alpha.19
@storybook/cli: ^6.5.10 => 6.5.10
@storybook/manager-webpack5: ^7.0.0-alpha.10 => 7.0.0-alpha.10
@storybook/react: ^7.0.0-alpha.18 => 7.0.0-alpha.19
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: