This project was bootstrapped with Create React App.
Storybook was added using sb init
without any options. This lets sb init
detect CRA and add preset-create-react-app and the webpack5 builder
automatically:
npx sb init
After this I had to add the following overrides to package.json
to overcome
dependency conflicts:
{
"overrides": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-refresh": "0.13.0"
}
}
npm run storybook
npm start