Closed Aleksey-Danchin closed 1 year ago
I ran into this issue as well. It appears to be a problem with webpack and node v17+ (see https://github.com/webpack/webpack/issues/14532)
The solution for me was to update my npm scripts for storybook
and build-storybook
in package.json
:
"storybook": "cross-env NODE_OPTIONS='--openssl-legacy-provider' start-storybook",
"build-storybook": "cross-env NODE_OPTIONS='--openssl-legacy-provider' build-storybook",
This uses the cross-env
package to set the NODE_OPTIONS environmental variable, but you could set the variable another way.
Duplicate of #16555
This is fixed in Storybook 7.0.0 beta
Closing as fixed in 7.0
Describe the bug
npx sb init --type html
in empty project create not worked configuration.To Reproduce
System Lubuntu 21.10 node 18.1 storybook 6.4.22
Terminal logs