Skip to content

Commit

Permalink
Fix storybook error with TS 4.3 by using react-docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
loichuder committed Jun 10, 2021
1 parent 3db2a83 commit a86eb2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
typescript: {
// Temp fix of https://github.com/styleguidist/react-docgen-typescript/issues/356
// (https://github.com/styleguidist/react-docgen-typescript/issues/356#issuecomment-857887751)
reactDocgen: 'react-docgen',
},
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
Expand Down

0 comments on commit a86eb2b

Please sign in to comment.