Setting up CRA preset with a monorepo #11631
Unanswered
jacobgranberry
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there - hoping to get some guidance on this issue I'm having.
I have a monorepo with several packages, with a src/Components folder in each, and those component folders contain all the stories. I'd like to suck them all up into a single root storybook and display them all. I seem to be accomplishing this but getting an error
File was processed with these loaders:
* ./node_modules/@storybook/source-loader/dist/server/index.js You may need an additional loader to handle the result of these loaders.
Searching through other issues it seems to be an issue with how CRApreset configures things from a /src directory only. Would love to know if anyone else has run into this issue and how they resolved it, or if theres another way to approach this!
This is for Storybook v. 5.3.19
My main.js
module.exports = { stories: ['../packages/**/*.stories.(js|jsx)'], addons: [ '@storybook/preset-create-react-app', '@storybook/addon-actions', '@storybook/addon-links', { name: '@storybook/addon-docs', options: { configureJSX: true, }, }, ], };
Beta Was this translation helpful? Give feedback.
All reactions