You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating custom themes or configuring Storybook's UI, in Storybook 7 users would have the dependency @storybook/addons and something like this in their manager.js/ts file:
.storybook/manager.tsimport{addons}from'@storybook/addons'import{create}from'@storybook/theming/create'consttheme=create({base: 'light',// ...the properties})addons.setConfig({
theme,showPanel: true,// show addons panel by defaultpanelPosition: 'right',// position addons panel on the right by default})
In Storybook 7, @storybook/addons was split into @storybook/manager-api and @storybook/preview-api but the migration notes don't really seem clear about what to do in the scenario just described.
When a user upgrades Storybook, they reach the following error:
I'd say we should improve the migration notes, but optimally provide an automigration for this.
The text was updated successfully, but these errors were encountered:
@Jkker can you link where addons.addPanel() is used? It has been deprecated since 7.x in favour of addons.add() and we should update the docs if it's still there.
Describe the bug
When creating custom themes or configuring Storybook's UI, in Storybook 7 users would have the dependency
@storybook/addons
and something like this in their manager.js/ts file:In Storybook 7,
@storybook/addons
was split into@storybook/manager-api
and@storybook/preview-api
but the migration notes don't really seem clear about what to do in the scenario just described.When a user upgrades Storybook, they reach the following error:
I'd say we should improve the migration notes, but optimally provide an automigration for this.
The text was updated successfully, but these errors were encountered: