-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add xxx.stories.js files in the package app folders? #44
Comments
I'm certain you will be able to do this. The warning you are receiving is one I see when I am trying to add something that is not listed in babel loader path. When you start the dev server, does it print out a list of valid paths? |
Thanks for helping with this. Really hopeful I can get this working. I created a new app in A new component
A new story file
Output in console from running
Storybook opens in a browser with the following:
|
Could you also share the relevant package.json files? (I'm interested in seeing the dependencies for storybook, and for any internal monorepo component linking). |
I fixed this for myself yesterday, I forked the |
Sorry, was working on a different project. Looked at this yesterday and have it working now w/o making adjustments to @workspace/react-scripts. Not sure if it's the best way but it's working for me. You can add stories in any folder in any package.
example for
example
|
Sounds like it's working? Can I close this? |
yes :) thanks for the help. |
I would like to include stories in the /package/app/ folders.
Is that possible?
I added a stories.js file in
packages/apps/app-single-comp/src
folder.I updated storybook/config.js to use
const comps = require.context('@project/app-single-comp', true, /.stories.js$/);
Receiving this error
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
I also tried installing storybook into that apps folder as well.
Is it possible?
It would be really nice to put storybook files in both the 'components' and 'app' folders.
The text was updated successfully, but these errors were encountered: