Generator @nrwl/react:stories doesn't see libraries
See original GitHub issueCurrent Behavior
Only applications available
Expected Behavior
Applications and libraries should be possible to specify (now even thru CLI I can’t target library)
Steps to Reproduce
start new react workspace
add storybook plugin
try to execute nx generate @nrwl/react:stories --project=<library here>
or through the GUI
Failure Logs
Cannot read property 'sourceRoot' of undefined
Environment
macOS
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
nrwl/react:stories does not generate Storybook stories
I'm trying to generate a story using @nrwl/react:stories : nx g @nrwl/react:stories --project=component-library. Which outputs:
Read more >Build your design system with Storybook + Nx
Automatically add Storybook setup to any Nx library · Generates stories for you · Generates e2e tests with Storybook · Generates Storybook ...
Read more >How to add Libraries in Kontakt when you get "no library found"
Your browser can't play this video. ... for Kontakt 6 and above, please watch this https://youtu.be/V5vd_yEIHkY link to the library maker ...
Read more >@nrwl/react:stories | Nx
This generator will generate stories for all your components in your project. nx g @nrwl/react:stories project-name.
Read more >Behavior when pregenerated library subsystem code is missing
If pregenerated library code is missing, Simulink ® software does not display a warning or an error. The code generator generates code for...
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
the stories generator is not able to find components which are not using default exports, would it be possible to make it work for named exports as well?
Restarting VS Code helped. Thanks
Side questions: it’s not currently possible to generate stories for all components under some folder, right?