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 a new bootstrapped project with npx tsdx create my-app TSDX installs the latest versions of @storybook/react (currently 8.0.9) and other @storybook dependencies. However, TSDX seems to configure the project to support an outdated version of storybook (I think version 6.x.x). As a result you are unable to use storybook from a freshly built tsdx project.
The project's storybook scripts also reference deprecated storybook scripts that are not installed by tsdx.
Be able to run storybook from a fresh project created by tsdx create, without the need for re-configuration.
Suggested solution(s)
With an additional dependency @storybook/cli the storybook scripts should become:
"storybook": "sb dev -p 6006",
"build-storybook": "sb build"
Additional context
Similar to #1179, but re-opening because of storybook V8 release.
It would seem some users have had success running npx storybook@next automigrate in order to migrate the tsdx project to a compatible version of storybook. However, this did not work for me - it is also not really ideal to have to manually patch configuration hence the solution even if it works is not desirable.
Current Behavior
When creating a new bootstrapped project with
npx tsdx create my-app
TSDX installs the latest versions of@storybook/react
(currently8.0.9
) and other@storybook
dependencies. However, TSDX seems to configure the project to support an outdated version of storybook (I think version 6.x.x). As a result you are unable to use storybook from a freshly built tsdx project.The project's storybook scripts also reference deprecated storybook scripts that are not installed by tsdx.
Expected behavior
Be able to run storybook from a fresh project created by
tsdx create
, without the need for re-configuration.Suggested solution(s)
With an additional dependency
@storybook/cli
the storybook scripts should become:Additional context
Similar to #1179, but re-opening because of storybook V8 release.
It would seem some users have had success running
npx storybook@next automigrate
in order to migrate the tsdx project to a compatible version of storybook. However, this did not work for me - it is also not really ideal to have to manually patch configuration hence the solution even if it works is not desirable.Your environment
The text was updated successfully, but these errors were encountered: