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.

Cannot find target storybook for project

See original GitHub issue

Library config is not updated in cache

Current Behavior

Error “Cannot find target storybook for project xxx” when run library storybook

Expected Behavior

Run storybook command working correctly

Steps to Reproduce

  1. Generate a react library
  2. Generate react library storybook config
  3. Run storybook of the library
  4. An error occurs “Cannot find target storybook for project xxx”
  5. Remove node_modules folder to remove .cache folder then re-install
  6. Re-run storybook command of the library. The command working

Failure Logs

Environment

Node : 14.17.6 OS : linux x64 yarn : 1.22.17

nx : 13.0.0 @nrwl/angular : Not Found @nrwl/cli : 13.0.0 @nrwl/cypress : 13.0.0 @nrwl/devkit : 13.0.0 @nrwl/eslint-plugin-nx : 13.0.0 @nrwl/express : Not Found @nrwl/jest : 13.0.0 @nrwl/linter : 13.0.0 @nrwl/nest : Not Found @nrwl/next : 13.0.0 @nrwl/node : 13.0.0 @nrwl/nx-cloud : 12.5.0 @nrwl/react : 13.0.0 @nrwl/schematics : Not Found @nrwl/tao : 13.0.0 @nrwl/web : 13.0.0 @nrwl/workspace : 13.0.0 @nrwl/storybook : 13.0.0 @nrwl/gatsby : Not Found typescript : 4.3.5

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
flexboxcommented, May 24, 2022

@dangviettuan Have you tried to run nx reset?

If your problem is solved can you please close the issue? It sparks joy for maintainers ✨

0reactions
github-actions[bot]commented, Nov 23, 2022

This issue has been automatically marked as stale because it hasn’t had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

storybook fails to start after upgrade angular - Stack Overflow
it seems Angular 14 is only supported from storybook version 7.0.0-alpha.0 so you would probably want to use test version in your project, ......
Read more >
Set up Storybook for Angular Projects - Nx
This guide will walk you through setting up Storybook for Angular projects in your Nx workspace. Set up Storybook in your workspace. You...
Read more >
@nrwl/storybook - npm
Nx is a next generation build system with first class monorepo support and powerful integrations. This package is a Storybook plugin for Nx....
Read more >
Configure Storybook
Configure your Storybook project · stories - an array of globs that indicates the location of your story files, relative to main. ·...
Read more >
Storybook for Angular fails with default/initial library config ...
npx sb@next init; npm run storybook; Observe error: Error: Missing required options in project target. Check "tsConfig". System Environment Info ...
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