@nrwl/react:stories is not generating 'stories' files
See original GitHub issueCurrent Behavior
On a new workspace (integrated/react/emotion):
nx g @nrwl/react:stories test
Does generate *.stories in apps/test
But:
nx g @nrwl/react:stories common-ui
Does not generate any *.stories in libs/common-ui
Expected Behavior
npx create-nx-workspace@latest
nx g @nrwl/react:lib common-ui
nx g @nrwl/react:storybook-configuration test
This makes the app stories ^
nx g @nrwl/react:storybook-configuration common-ui
This will generate the common-ui stories initially (but only for files in src/lib though, not in other src* folders)
nx g @nrwl/react:stories common-ui
This does nothing for things in libs/*
Environment
> NX Report complete - copy this into the issue template
Node : 16.17.0
OS : linux x64
npm : 8.15.0
nx : 15.0.0
@nrwl/angular : Not Found
@nrwl/cypress : 15.0.0
@nrwl/detox : Not Found
@nrwl/devkit : 15.0.0
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.0.0
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.0.0
@nrwl/js : 15.0.0
@nrwl/linter : 15.0.0
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : 15.0.0
@nrwl/react-native : Not Found
@nrwl/rollup : 15.0.0
@nrwl/schematics : Not Found
@nrwl/storybook : 15.0.0
@nrwl/web : 15.0.0
@nrwl/webpack : 15.0.0
@nrwl/workspace : 15.0.0
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
Issue Analytics
- State:
- Created a year ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
nrwl/react:stories does not generate Storybook stories
I've a package called component-library which contains an index.ts file at the ...
Read more >@nrwl/react:stories | Nx
This will generate stories for all the components in the ui project, except for the ones in the libs/ui/src/not-stories directory, and also for...
Read more >Build your design system with Storybook + Nx
Nx can generate stories for you from your React components. ... run the right Nx command to generate your stories (nx g @nrwl/react:stories...
Read more >Stories for multiple components - Storybook - JS.ORG
See https://storybook.js.org/docs/react/configure/overview#configure-story-loading * to learn how to generate automatic titles */ title: 'List', ...
Read more >Use Storybook with Tailwind in an Nx Workspace | juri.dev
For those of you not using VSCode or simply preferring the CLI, ... A new Storybook story was generated automatically for our ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I changed the label from
bugtoenhancementbecause at the moment it works as intended. However, I am 100% open to discussing the other approach!Thank you very much @rek . Please let me know if I can do anything else to make the experience with Nx better for you! You could start a discussion (and link this issue and mention me, too) and we could see what the rest of the users think on this, because I don’t want to be the single point of reference, here! Too much responsibility!! 😛