sb initis not made for empty projects
Storybook needs to be installed into a project that is already set up with a framework. It will not work on an empty project. There are many ways to bootstrap an app in a given framework, including:
Storybook will look into your project's dependencies during its install process and provide you with the best configuration available.
The command above will make the following changes to your local environment:
Depending on your framework, first, build your app and then check that everything worked by running:
It will start Storybook locally and output the address. Depending on your system configuration, it will automatically open the address in a new browser tab, and you'll be greeted by a welcome screen.
There are some noteworthy items here:
Below are some of the most common installation issues and instructions on how to solve them.
If all else fails, try asking for help
Now that you installed Storybook successfully, let’s take a look at a story that was written for us.