-
-
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
Don't work if Debug server host is setted: websocket: connection error", "Failed to connect to localhost/127.0.0.1:7007 #844
Comments
Ok, seems using: const StorybookUI = getStorybookUI({port: 7007, host: '10.0.0.90'}); can do this. |
But I think it's better to read Dev settings...Since this is config, prefer not hardcoded. |
Well, after searching. I still don't know how to read Dev settings, or I could have made a PR... Tell me if anybody know the way to do this. |
Hi @linonetwo Thanks for opening the issue. If you find a way to pass some config info into the React Native app at build time without hard coding it, please let me know. So far, the only I way I found is by dynamically generating a JS file when starting storybook and importing it into the RN app. I'm trying to find a better way to do this. |
In Android Studio on Ubuntu localhost needs to be changed to 10.0.2.2 in order for storybook to work, the emulator doesn't recognize localhost |
Nowadays I just read different config files when running by different npm script.... |
Hi I am getting this same error I tried the solution as suggested by @linonetwo but still no success. Can anybody help ? |
adb reverse tcp:7007 tcp:7007 |
@mnmtanish Do you think there's something we still need to do here? |
I'm pretty sure this is a duplicate: #846 Please re-open if it isn't 👍 |
Saturday Dec 17, 2016 at 07:06 GMT
Originally opened as storybook-eol/react-native-storybook#116
I use wifi to sent bundle, in Dev settings, I set Debug server host to 10.0.0.90:8081, and bundle was sent. But socket seems still try to connecting 127.0.0.1:7007.
I think socket should read Dev setting, and try to connect 10.0.0.90:7007 if I have set it.
Seems running "storybook start -h 10.0.0.90 -p 7007" can't help.
The text was updated successfully, but these errors were encountered: