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

Cannot connect device to react-native-server #103

Closed
andrey-shostik opened this issue Jul 24, 2019 · 14 comments
Closed

Cannot connect device to react-native-server #103

andrey-shostik opened this issue Jul 24, 2019 · 14 comments

Comments

@andrey-shostik
Copy link

Describe the bug
I have run emulator and react-native-server, but I can't see my stories on the web page

Expected behavior
On web page should be my stories instead of placeholder

Screenshots
download

System:

  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 77.98 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.16.0 - /usr/local/bin/node
      Yarn: 1.12.3 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.3, 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3
        System Images: android-24 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64
    IDEs:
      Android Studio: 3.1 AI-173.4907809
      Xcode: 10.3/10G8 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.5 => 0.59.5 
    npmGlobalPackages:
      react-native-cli: 2.0.1
@andrey-shostik andrey-shostik changed the title Cannot connect device to react-native-server Cannot connect device to react-native-server(Error not opened) Jul 24, 2019
@andrey-shostik andrey-shostik changed the title Cannot connect device to react-native-server(Error not opened) Cannot connect device to react-native-server Jul 24, 2019
@hosseinarsheia
Copy link

i have exact same problem too

@Gongreg
Copy link
Member

Gongreg commented Jul 25, 2019

Hello, try out storybook 5.2.0.beta... version.

@hosseinarsheia
Copy link

I try "5.2.0-beta.7" version.
It still dont work

@Gongreg
Copy link
Member

Gongreg commented Jul 25, 2019

Are you using real android/emulator?

Run adb reverse tcp:7007 tcp:7007

@hosseinarsheia
Copy link

I use real android device,
execute adb reverse tcp:7007 tcp:7007
still dont work

@Gongreg
Copy link
Member

Gongreg commented Jul 25, 2019

I can tell you that 5.2.0-beta is supposed to work since I checked it last week. Try to do fresh install, and make sure that all storybook dependencies are 5.2.0-beta...

@Gongreg
Copy link
Member

Gongreg commented Jul 25, 2019

also you are using port 6006, so you have to run adb reverse tcp:6006 tcp:6006

@hosseinarsheia
Copy link

i did all thing you said but still no sucess here

@Gongreg
Copy link
Member

Gongreg commented Jul 25, 2019

Sorry but I don’t know how to help you more. Unless you can do reproduction that I can run, then I might try to look for issue :)

@andrey-shostik
Copy link
Author

andrey-shostik commented Jul 25, 2019

@Gongreg Thanks a lot! I managed to connect by changing versions to

    "@storybook/addon-actions": "5.2.0-beta.8",
    "@storybook/addon-links": "5.2.0-beta.8",
    "@storybook/addons": "5.2.0-beta.8",
    "@storybook/react-native": "5.2.0-beta.8",
    "@storybook/react-native-server": "5.2.0-beta.8",
    "@storybook/theming": "5.2.0-beta.8",

And before install removed whole node_modules
download-2

@Gongreg
Copy link
Member

Gongreg commented Jul 25, 2019

Glad to hear that you got it working :)

@andrey-shostik
Copy link
Author

andrey-shostik commented Jul 25, 2019

Sorry I forget to say that as well I changed port to 7007, and actually exactly it helped to me.

@Gongreg
Copy link
Member

Gongreg commented Jul 25, 2019

@hosseinarsheia can you change the port to 7007 and then try things out?

@thienhaflash
Copy link

thienhaflash commented Sep 2, 2020

I confirm that changing the port from 6006 to 7007 will work, at least for me (I'm on a Mac, connecting to the iOS simulator).

Searched & tried everything before, only need to change the port to 7007 so that it works.

Thanks a lot @andrey-shostik

Before
image

image

After
image

image

@shilman shilman transferred this issue from storybookjs/storybook Sep 3, 2020
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

4 participants