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
Cannot load stories if they in the same folder with implementation:
// config.jsimport{configure}from'@storybook/angular';import{setOptions}from'@storybook/addon-options';setOptions({hierarchyRootSeparator: /\|/,});functionloadStories(){// put welcome screen at the top of the list so it's the first one displayedrequire('../src/stories');// automatically import all story ts files that end with *.stories.tsconstreq=require.context('../src/stories',true,/\.stories\.ts$/);req.keys().forEach((filename)=>req(filename));// automatically import all story ts files that end with *.stories.ts within app ( side by side implementation )constreqLocal=require.context('../src/app',true,/\.stories\.ts$/);reqLocal.keys().forEach((filename)=>req(filename));}configure(loadStories,module);
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/angular
@storybook/* 3.4.0-alpha.9
The text was updated successfully, but these errors were encountered:
Issue details
Maybe I'm doing something wrong? But how can I properly load stories which are side by side with implementation of a particular component?
I'm using Angular CLI.
following doesn't work:
Steps to reproduce
Cannot load stories if they in the same folder with implementation:
Please specify which version of Storybook and optionally any affected addons that you're running
The text was updated successfully, but these errors were encountered: