-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
React-Native: Fresh install doesn't show storybook elements (Android Only!) #1567
Comments
@Billydubb it's a little wonky. What's supposed to happen is that:
Let me know if that works for you? |
I just tried the same sequence of steps on iOS and there it works without a problem. This seems to be somehow Android related. |
Got help in the storybooks slack channel. After step 3 you have to run |
@Billydubb, I got into the same issue today. Maybe it would be nice to write about this somewhere in readme? |
I already did add it to the readme: "If you are using Android and you get the following error after running the app: 'websocket: connection error', 'Failed to connect to localhost/127.0.0.1:7007', you have to forward the port 7007 on your device/emulator to port 7007 on your local machine with the following command: |
@Billydubb Awesome! :) I will close the issue then. |
where do I write that "following command" of |
@pashute In the terminal |
My problem was that I was running |
I am facing the same issue, getstorybook is installing react configurations, even the app is react-native.
maybe I am holding it wrong 😮 |
@amed Did you do the adb reverse command? |
Yes, the issue is with installing storybook. |
I am using npm version: 3.10.8, node version 6.9.0 and @storybook/cli and getstorybook version 3.1.9
On a fresh
react-native init
project I install storybook by runninggetstorybook
in the directory.The install completes fine and the storybook directory is created inside my project root directory.
Now I start storybook with
npm run storybook
The site is set up at localhost:7007 correctly, but none of the stories in the storybooks/stories directory show up in the left panel plus I get 2 warnings in the console:
According to the documentation here I am not supposed to run:
react-native run-android
to see the stories on my device or emulator. However, that gives me an error in the emulator saying'websocket: connection error', 'Failed to connect to localhost/127.0.0.1:7007'
The text was updated successfully, but these errors were encountered: