Skip to content

Commit 8b215ea

Browse files
authored
chore: Add script storybook:stable (#853)
### Issue * I've seen this error every time when running storybook, so I had to run `export NODE_OPTIONS=--openssl-legacy-provider` by hand. * So I make it to a script. Now we can run `yarn storybook:stable` when we face the error or just from the beggining. ### Fix * chore: Add script `storybook:stable` for using open SSL legacy provider
1 parent 45dd329 commit 8b215ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ To read more: https://webpack.js.org/configuration/resolve/#resolvefallback
160160
3. Plop templates are found in [here](/plop-templates).
161161
162162
## Troubleshooting Guide
163-
- If you use node.js >= 17 and see `ERR_OSSL_EVP_UNSUPPORTED` error on any run cmd, try to set `export NODE_OPTIONS=--openssl-legacy-provider` in the terminal
163+
- If you use node.js >= 17 and see `ERR_OSSL_EVP_UNSUPPORTED` error on any run cmd, try to run `yarn storybook:stable` instead.
164164
165165
166166
## Acknowledgments

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"prepublishOnly": "yarn build",
4646
"predeploy": "yarn clean-release; yarn install; yarn build",
4747
"storybook": "start-storybook -p 6006",
48+
"storybook:stable": "NODE_OPTIONS=--openssl-legacy-provider && start-storybook -p 6006",
4849
"build-storybook": "build-storybook",
4950
"lint": "yarn eslint; yarn eslint-ts",
5051
"lint:fix": "yarn eslint --fix; yarn eslint-ts --fix",

0 commit comments

Comments
 (0)