You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
["react-docgen", {}, 'other_docgen'], <<<<--- I'v tried without this as well"@babel/plugin-proposal-class-properties",
"babel-plugin-styled-components",
"add-react-displayname"
],
"env":{
"test": {
"plugins":["require-context-hook"]
}
}
}
main.js
constpath=require('path');constcreateCompiler=require('@storybook/addon-docs/mdx-compiler-plugin');constcustom=require('../webpack.config')('dev');module.exports={webpackFinal: async(config)=>{config={
...config,resolve: custom.resolve,module: {
...config.module,rules:
custom.module.rules}};config.module.rules.push({test: /\.(stories|story)\.mdx$/,use: [{loader: 'babel-loader',// may or may not need this line depending on your app's setupoptions: {plugins: ['@babel/plugin-transform-react-jsx'],},},{loader: '@mdx-js/loader',options: {compilers: [createCompiler({})],},},],});config.module.rules.push({test: /\.(stories|story)\.[tj]sx?$/,loader: require.resolve('@storybook/source-loader'),exclude: [/node_modules/],enforce: 'pre',});returnconfig;},stories:['../htdocs/dashboard/src/js/stories/Introduction.stories.mdx','../htdocs/dashboard/src/js/stories/*.stories.mdx','../htdocs/dashboard/src/js/components/**/*.stories.(js|mdx)'],addons: ['@storybook/addon-backgrounds','@storybook/addon-a11y','@storybook/addon-viewport',],presets: ['@storybook/addon-docs/preset']}
Describe the bug
I just went through the migration guide from 5.2xxxxrcsomething to 5.3.3
I think its related to #9415
Now the prop tables are not being populated (or loaded, not __docgenInfo on conponents)
Screenshots
![image](https://user-images.githubusercontent.com/10500823/72475408-d2e5b100-37b8-11ea-98d0-5941c74ab8cd.png)
If applicable, add screenshots to help explain your problem.
Code snippets
manager.js
preview-head.html
preview.js
.babelrc
(in.storybook
directory)main.js
System:
Additional context
`package.json
The text was updated successfully, but these errors were encountered: