From 5bec709210287a8442ca80a83b4f5d67d840cbdc Mon Sep 17 00:00:00 2001 From: Jacob Pihl Date: Wed, 23 Oct 2024 15:33:52 +0200 Subject: [PATCH] Temporary OpenSSL workaround 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. https://github.com/storybookjs/storybook/issues/19692#issuecomment-1297542268 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f680e3807..22902c81a 100644 --- a/package.json +++ b/package.json @@ -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",