Skip to content

Commit

Permalink
Temporary OpenSSL workaround
Browse files Browse the repository at this point in the history
Due to a change in the OpenSSL API in Node 17, storybook fails to run without openssl-legacy-provider.
This can be omitted by upgrading Storybook to version 7 or higher.

storybookjs/storybook#19692 (comment)
  • Loading branch information
JacobArrow committed Oct 23, 2024
1 parent 4ec1165 commit 5bec709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.1.0",
"repository": "https://github.com/danskernesdigitalebibliotek/dpl-design-system",
"scripts": {
"storybook": "start-storybook -p 6006 -s public",
"storybook:axe": "build-storybook && axe-storybook",
"build-storybook": "build-storybook -s public",
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 -s public",
"storybook:axe": "NODE_OPTIONS=--openssl-legacy-provider build-storybook && axe-storybook",
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -s public",
"js:eslint": "eslint 'src/**/*.{js,ts,tsx}' --max-warnings=0",
"js:prettier": "prettier 'src/**/*.{js,ts,tsx}'",
"js:lint": "concurrently 'yarn:js:eslint' 'yarn:js:prettier -- --check' --raw",
Expand Down

0 comments on commit 5bec709

Please sign in to comment.