DEV Community

Discussion on: Next.js + Storybook + Typescript : 2021 guide

Collapse
 
dramoslace profile image
Deiby Dayans R

To use storybook I needed to use the following package as a dev dependency:

yarn add @storybook/cli --dev

then,

yarn sb init

Collapse
 
rickvian profile image
Rickvian Aldi

Thanks this worked for me!
i was using npx sb init following the official doc, and it messed up my package (some package is missing etc)
i delete my node modules, redo yarn install,
do your recommendation, and it worked