Downgrading storybook
Asked Answered
T

2

6

I am having an issue with Storybook 6.3 since it uses Webpack 5 and I am installing it on a clean create-react-app which uses Webpack 4.41.8.

I tried to update react webpack and all and still no luck. The problem started after I tried to add sass support for my storybook project, and went into dependency hell.

I just want to install an older version of Storybook like 5.3, how do I do that? Since Storybook uses npx sb init?

Tipple answered 2/8, 2021 at 7:39 Comment(2)
Try npx [email protected] init.Reduction
i did, it installed 6.3.6Tipple
S
0

You could downgrade storybook. This is the official manual

If you'd like to downgrade to a stable version, manually edit the package version numbers in your package.json and re-install.

Seduce answered 6/2, 2023 at 10:12 Comment(0)
T
-1

So in the end I found this to be the answer to all my problems (having latest Storybook and working sass support) that has been using the standard webpack-loaders as shown in the official Storybook docs, do not forget to import them and the entry .scss file in the root/.storybook/preview.js file e.g. import "!style-loader!css-loader!sass-loader!../stories/assets/main.scss"

Tipple answered 2/8, 2021 at 9:18 Comment(2)
does not answer how to downgrade storybookAmiens
This does not help in downgrading storybook.Gutturalize

© 2022 - 2024 — McMap. All rights reserved.