question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connecting to React...

See original GitHub issue

React Native Debugger version: 1.7.4 React Native version: 0.45.1 Platform: Android Is real device of platform: Genymotion emulator Operating System: Windows 10 x64

I’ve read the troubleshooting and the react-devtools-core@2.4.0 installed. Strangely enough, it was working couple days ago, when I did not need it. Now I could use it and it’s a fail 😃

I tried to Reload debugger window, let it connect and then reload the app in the emulator. After a while, I see in the console error failed to connect coming directly from react-devtools-core. I also tried restarting whole system, did not help.

It is working correctly when using real Android device.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
BVasilev-zzcommented, Jan 30, 2019

For people still having this problem what worked for me was:

  1. Starting the simulator.
  2. Closing the automatically opened Developer tools.
  3. Opening the react-native-debugger. ----- At this point it usually doesn’t work for me (Connecting to React issue…) -----
  4. In the Debugger: Debugger > New Window
  5. Fill in your port (19001)

You are good to go! That worked for me!

1reaction
danielkczcommented, Jul 18, 2017

Interesting. I actually tried setting a date with adb as a first attempt, but that did not seem to have any effect. Then I tried the reverse, but I also restarted the simulator, so it possible that setting date actually solved it, but needed a restart. 🤷‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connect | React Redux
The connect() function connects a React component to a Redux store. It provides its connected component with the pieces of the data it...
Read more >
How, When, and Why to Connect() in React JS - Medium
connect () method just provides a way for the user to connect the component to the redux store. It provides its connected component...
Read more >
React Redux connect(): When and how to use it
The React Redux connect() API is used for creating container elements that are connected to the Redux store. The Redux store is derived...
Read more >
Add React to a Website
Step 3: Create a React Component​​ Create a file called like_button.js next to your HTML page. Open this starter code and paste it...
Read more >
Tutorial | React.js and Spring Data REST
React is Facebook's solution to efficient, fast, and easy-to-use views in ... This is the way to connect your user's data store into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found