Storybook Builder: Migration from Storybook 8 to 9
Update dependencies
@web/storybook-builder for Storybook 9 is released as version 0.3.x and expects all Storybook packages to be at least 9.1.20.
You need to:
- update
@web/storybook-builderand@web/storybook-framework-web-componentsto^0.3.0 - remove outdated
@storybook/*packages (see links below for more info)- most common ones to remove are
@storybook/addon-essentials,@storybook/addon-interactions,@storybook/blocks,@storybook/test - most common one to add is
@storybook/addon-docs
- most common ones to remove are
- update dependencies under the namespace
@storybook/*and thestorybookitself to^9.1.20
General migration guide
Make sure to follow the Storybook's own migration guide and look into more detailed migration notes on GitHub.
We recommend to read all of it carefully, many small details are too easy to miss, so go through it step by step.
Some changes will be Vite/Webpack specific and unrelated to @web/storybook-builder or @web/storybook-framework-web-components, skip them.
Specific migration notes
A few dependencies might need to be updated, only if you use them:
- update
@web/mocksto^2.0.0and follow it's migration guide - update
@web/storybook-utilsto^2.0.0