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
"Story" tab only reads: "loading source..." for any and all stories. I looked at all the comments in issue #3626 and none of that made any difference.
I suspect the issue may be related to the fact we have a central location for adding stories instead of adding each at a time on their own file. See config.js file below for the exact code. Is this maybe not supported by StorySource?
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/addon-actions: "^5.0.1",
@storybook/addon-knobs: "^5.0.1",
@storybook/addon-storysource: "^5.0.1",
@storybook/react: "^5.0.1",
Affected platforms
Issue happens in both Firefox/Chrome in macOS. Don't think it's browser or even platform related. More like configuration.
Code Snippets
config.js
import"./styles.css";importReactfrom"react";importpathfrom"path";import{configure}from"@storybook/react";import{getStorybook,storiesOf}from"@storybook/react";import{withKnobs}from"@storybook/addon-knobs";letgetComponentName=filePath=>path.dirname(filePath).split(path.sep).reverse()[0];letgetPackageName=filePath=>path.dirname(filePath).split(path.sep).reverse()[1];configure(()=>{// Automatically import all examplesconstreq=require.context("../packages",true,/^((?!node_modules).)*\.example\.js$/);req.keys().forEach(pathToExample=>{const{ name, Example }=req(pathToExample);constcomponentName=`${getPackageName(pathToExample)}.${getComponentName(pathToExample)}`;storiesOf(componentName,module).addDecorator(withKnobs).add(name,()=><Example/>);});},module);export{getStorybook};
Bug or support request summary
"Story" tab only reads: "loading source..." for any and all stories. I looked at all the comments in issue #3626 and none of that made any difference.
I suspect the issue may be related to the fact we have a central location for adding stories instead of adding each at a time on their own file. See
config.js
file below for the exact code. Is this maybe not supported by StorySource?Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
Issue happens in both Firefox/Chrome in macOS. Don't think it's browser or even platform related. More like configuration.
Code Snippets
config.js
webpack.config.js
Individual story file
button.example.js
The text was updated successfully, but these errors were encountered: