react-docgen-typescript-loader
react-docgen-typescript-loader copied to clipboard
Component Description not displayed
Component info is no longer appearing in Storybook

Checking the example project, it no longer appears, although the component has comments and the story name matches the display name of your component.


EXAMPLE:
If the top level storiesOf function has the same name as a sub-level component such as FormInputElement, the component description displays for ALL sub components. However, we want a different component description for each subcomponentof the .add function, which is not currently working.

Current storybook webpack config file:
const TSPropTypeDocgen = require.resolve('react-docgen-typescript-loader')
module.exports = (baseConfig, env) => {
baseConfig.module.rules.push({
test: /\.(ts|tsx)$/,
use: ['babel-loader', TSPropTypeDocgen]
})
baseConfig.module.rules.push({
test: /\.(sa|sc|c)ss$/,
loaders: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader']
})
baseConfig.module.rules.push({
test: /\.(woff|woff2)$/,
loaders: ['file-loader']
})
baseConfig.module.rules.push({
test: /\.(png|jpg|gif)$/,
loader: 'file-loader'
})
baseConfig.resolve.extensions.push('.ts', '.tsx', '.scss')
return baseConfig
}
You're right. Can't believe I missed that.
My initial impression is that something changed from the very old v4 alpha and the current stable build of Storybook. My guess is something changed in @storybook/addon-info in how it decides what to display. We will need to see what it expects to find and make adjustments in the loader.
Awesome @strothj . Looking forward to hearing what you find. Thanks for all the work on the loader btw.