Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Getting started step in "Storybook for React Native tutorial" does not work #617

Closed
Nautman opened this issue Jun 14, 2022 · 1 comment

Comments

@Nautman
Copy link

Nautman commented Jun 14, 2022

Hi, I have followed the instructions for getting started in the Storybook for React Native tutorial. Unfortunately, when I reach the step to run the storybook, it fails.

These are the errors

ERROR in ./storybook/addons.js
Module not found: Error: Can't resolve '@storybook/addon-actions/manager' in '/redacted/user/project/storybook'
 @ ./storybook/addons.js 1:0-41
 @ multi ./node_modules/@storybook/react-native-server/node_modules/@storybook/core/dist/server/common/polyfills.js ./storybook/addons.js ./node_modules/@storybook/react-native-server/dist/client/manager/index.js

ERROR in ./storybook/addons.js
Module not found: Error: Can't resolve '@storybook/addon-knobs/manager' in '/redacted/user/project/storybook'
 @ ./storybook/addons.js 1:80-119
 @ multi ./node_modules/@storybook/react-native-server/node_modules/@storybook/core/dist/server/common/polyfills.js ./storybook/addons.js ./node_modules/@storybook/react-native-server/dist/client/manager/index.js

ERROR in ./storybook/addons.js
Module not found: Error: Can't resolve '@storybook/addon-links/manager' in '/redacted/user/project/storybook'
 @ ./storybook/addons.js 1:41-80
 @ multi ./node_modules/@storybook/react-native-server/node_modules/@storybook/core/dist/server/common/polyfills.js ./storybook/addons.js ./node_modules/@storybook/react-native-server/dist/client/manager/index.js

I am very grateful for any help on how to set up Storybook for React Native. Please tell me if you need more information.

Thanks!

@jonniebigodes
Copy link
Collaborator

@Nautman, thanks for reaching out to us with your issue; we appreciate it. To give you a bit of context, this is not an issue with the tutorial itself but actually with the CLI, which has been fixed with the following pull request. Hopefully, the fix will be released in a couple of days and should get you unblocked.

I hope you don't mind, but I will close the issue.

Let me know if the issue still persists, and I'll gladly follow up with you on it.

Have a great weekend.

Stay safe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants