npm run storybook
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }
のエラー
--openssl-legacy-provider
のオプション?
export NODE_OPTIONS=--openssl-legacy-provider
とやったら動いたが、
また他で unset NODE_OPTIONS
やるのはだるい
package.json
の中身
"private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint --dir src", "format": "next lint --fix --dir src", "storybook": "start-storybook -p 6006",
こうした。
"storybook": "export SET NODE_OPTIONS=--openssl-legacy-provider && start-storybook -p 6006",