From 7b46182e4d0a46015951fba93c5cdda37f2a8fb4 Mon Sep 17 00:00:00 2001 From: Nicolas Clerc Date: Thu, 10 Jun 2021 08:45:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(storybook)=20add=20typescript=20do?= =?UTF-8?q?cgen=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A recent update on react-docgen-typescript dependancy broke storybook build. This configaration is a workaround until storybook 6.3 releases. Related issue: https://github.com/storybookjs/storybook/issues/15067 --- src/frontend/.storybook/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/.storybook/main.js b/src/frontend/.storybook/main.js index e5d2fd0ce5..7501097ac1 100644 --- a/src/frontend/.storybook/main.js +++ b/src/frontend/.storybook/main.js @@ -1,4 +1,11 @@ module.exports = { stories: ['../components/**/*.stories.@(js|jsx|ts|tsx)'], addons: ['@storybook/addon-a11y', '@storybook/addon-essentials'], + + // workaround for https://github.com/storybookjs/storybook/issues/15067 + // storybook 6.3 should fix it + typescript: { + // also valid 'react-docgen-typescript' | false + reactDocgen: 'react-docgen', + }, };