Skip to content

Commit

Permalink
🐛(storybook) add typescript docgen config
Browse files Browse the repository at this point in the history
A recent update on react-docgen-typescript dependancy broke storybook
build.
This configaration is a workaround until storybook 6.3 releases.

Related issue: storybookjs/storybook#15067
  • Loading branch information
kernicPanel committed Jun 10, 2021
1 parent 775f1fa commit 7b46182
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/frontend/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -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',
},
};

0 comments on commit 7b46182

Please sign in to comment.