nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.25k stars 2.31k forks source link

Documentation does not provide the necessary instructions to configure Storybook for a react-native project #22275

Open ubugnu opened 6 months ago

ubugnu commented 6 months ago

Documentation issue

Is there a specific documentation page you are reporting?

Additional context or description

The documentation seems to treat the configuration of a react project and the configuration of a react native project as the same, which obviously is not the case!

Also, when I run any of the commads provided, e.g. npx nx storybook my-mobile-app, I get a browser page for Storybook. But, react-native stories are run on a mobile phone and not on a browser.

Finally, if I try to bypass the nx installation method, and use directly the one provided in the official repository, using a npx storybook@latest init command on the root of the mobile app folder, I get an error saying:

SB_CLI_INIT_0001 (NxProjectDetectedError): We have detected Nx in your project. Nx has its own Storybook initializer, so please use it instead.
Run "nx g @nx/storybook:configuration" to add Storybook to your project.

More info: https://nx.dev/packages/storybook
recallwei commented 1 month ago

+1

meckanism commented 1 month ago

+1