question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generator @nrwl/react:stories doesn't see libraries

See original GitHub issue

Current Behavior

Only applications available Screenshot 2021-03-28 at 12 21 26

Expected Behavior

Applications and libraries should be possible to specify (now even thru CLI I can’t target library) Screenshot 2021-03-28 at 12 21 36

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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
daton89commented, Oct 6, 2021

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?

1reaction
yieldinovcommented, Mar 29, 2021

Restarting VS Code helped. Thanks

Side questions: it’s not currently possible to generate stories for all components under some folder, right?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found