You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install storybook@latest in an Angular v16.1.0 project and installation fails.
I have created single-workspace Angular project (v16.1.0) with Angular CLI. (Check source code here ):
When I run: npx storybook@latest init
Issue: Builder is not detected and project is recognized as an Nx project, but I'm not using Nx.
Output:
✔ We were not able to detect the right builder for your project. Please select one: › Webpack 5
Error: We have detected Nx in your project. Please use "nx g @nrwl/storybook:configuration" to add Storybook to your project.
For more information, please see https://nx.dev/packages/storybook
at runGenerator (/Users/isidro/.npm/_npx/bc7e1e37fcb46ffc/node_modules/@storybook/cli/dist/generate.js:89:5803)
at installStorybook (/Users/isidro/.npm/_npx/bc7e1e37fcb46ffc/node_modules/@storybook/cli/dist/generate.js:93:795)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async doInitiate (/Users/isidro/.npm/_npx/bc7e1e37fcb46ffc/node_modules/@storybook/cli/dist/generate.js:98:845)
at async withTelemetry (/Users/isidro/.npm/_npx/bc7e1e37fcb46ffc/node_modules/@storybook/core-server/dist/index.js:113:3659)
at async initiate (/Users/isidro/.npm/_npx/bc7e1e37fcb46ffc/node_modules/@storybook/cli/dist/generate.js:111:602)
Workaround (kind of...): I've tried npx storybook@7.0.6 init and everything went fine. But noticed v7.1.0 was installed instead. Weird... - Check resulting changes here
Describe the bug
I'm trying to install
storybook@latest
in an Angular v16.1.0 project and installation fails.I have created single-workspace Angular project (v16.1.0) with Angular CLI. (Check source code here ):
When I run:
npx storybook@latest init
Issue: Builder is not detected and project is recognized as an Nx project, but I'm not using Nx.
Output:
Workaround (kind of...): I've tried
npx storybook@7.0.6 init
and everything went fine. But noticed v7.1.0 was installed instead. Weird... - Check resulting changes hereTo Reproduce
npx storybook@latest init
System
Additional context
No response
The text was updated successfully, but these errors were encountered: