Closed prewk closed 7 hours ago
This is expected and is a result of Storybook requiring it: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#react-peer-dependencies-required
That's migration docs for Storybook 7.
As of Storybook 8, Storybook no longer requires React in non-React projects (scroll down to "No more React requirement in non-React projects").
Current Behavior
Hi, we've been struggling with this for a while: Every time we run the
@nx/angular:storybook-configuration
generator in our yarn berry no-installs pnp set-up, nx installs@nx/web
,react
andreact-dom
. I've created a repro that shows the problem, it doesn't install@nx/web
however.Expected Behavior
No packages should be installed.
GitHub Repo
https://github.com/prewk/nx-storybook-test
Steps to Reproduce
I've created a lib called
foo
in the repro repo.npx nx g @nx/angular:storybook-configuration foo
Nx Report
Company repo which we want to solve:
The reproduction repo:
Failure Logs
No response
Package Manager Version
yarn v4.4.0 / npm 10.8.2
Operating System
Additional Information
No response