Closed vajkri closed 6 years ago
Thank you for the detailed bug report!
I'll take a look at this. Can you upload a sample of the component too? The Button.tsx
.
One thing you can try is to exclude a particular component for debugging purposes.
Webpack loader options:
options: {
excludes: ["stories\\.tsx$", "TextFieldTooltip"],
},
Thanks for your reply @strothj. I found out that the error was coming from my solution, not react-docgen-typescript-loader. I had a let initialized, which was apparently getting the wrong type this way. But the weird part is, I wasn't getting any errors in the actual project before I added react-docgen-typescript-loader. Anyway, it's fixed now :)
Bug summary
I am trying to run Storybook 4.0.0-alpha.8 with Typescript and
react-docgen-typescript-loader
. Currently I am trying to make it work usingts-loader
. Whenever I runyarn storybook
, i get the error:Steps to reproduce
.storybook/config.js
.storybook/webpack.config.js
Folder structure
Run
yarn storybook
Storybook version and affected addons
Screenshot: