flipper icon indicating copy to clipboard operation
flipper copied to clipboard

React Dev Tools does not connect the device

Open RenanRicoldi opened this issue 6 years ago • 45 comments

🐛 Bug Report

I click the React DevTools and then the retry button several times, and always get this message. image

To Reproduce

Run the flipper app, run the app, click React DevTools

Environment

React Native 0.62 Linux Mint Cinammon 19.3 Flipper version 0.36.0

RenanRicoldi avatar Apr 09 '20 18:04 RenanRicoldi

Same here on Android on macOS. Using Flipper 0.37.0 and RN 0.62.2 I can open the debugger menu on the app via Flipper but don't get it to connect with DevTools

JohannesKlauss avatar Apr 10 '20 09:04 JohannesKlauss

same issue

byteab avatar Apr 12 '20 11:04 byteab

Exactly the same on React Native 0.62 and flipper 0.36

dayze avatar Apr 12 '20 11:04 dayze

Same issue, devtools appear completely broken on RN 0.62

evelant avatar Apr 13 '20 13:04 evelant

When I click Retry, my app restarts, but still the error. I don't have any other devtools installed. If I open the development menu and click Debug, Chrome is started (and it does not have the devtools extension).

tapz avatar Apr 14 '20 20:04 tapz

same here with React Native 0.62.2 and Flipper 0.37.0

jk-gan avatar Apr 16 '20 03:04 jk-gan

Same error! Latest RN and Flipper versions.

Bohmaster avatar Apr 17 '20 08:04 Bohmaster

Could you share the output in the terminal running metro as well? Any errors shown over there?

mweststrate avatar Apr 17 '20 10:04 mweststrate

No error is shown for me.

JohannesKlauss avatar Apr 17 '20 10:04 JohannesKlauss

If you press reload / dev menu in the toolbar, does that get picked up by the device?

On Fri, Apr 17, 2020 at 11:56 AM Johannes Klauss [email protected] wrote:

No error is shown for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/facebook/flipper/issues/1000#issuecomment-615181862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBDBQQ76B7HEX5FBZOTRNAYUHANCNFSM4ME6IAQQ .

mweststrate avatar Apr 17 '20 12:04 mweststrate

Yes. I can reload and open the dev menu via Flipper. At least for Android, don't know about iOS

JohannesKlauss avatar Apr 17 '20 13:04 JohannesKlauss

Opposite happening for me. Brand new RN Project, update Flipper to 37 along with all the required dependencies 37 relies on. Works fine on Android with no issue but there's no feedback from Flipper apart from the RN console logging into it.

nonewcode avatar Apr 18 '20 11:04 nonewcode

Just some thought, it would be good to also share device/simulator type. (@JohannesKlauss, @RenanRicoldi,..)

For example if using Android device, we need to set port forwarding for React DevTools:

adb reverse tcp:8097 tcp:8097

Quick check

  • Do not turn ON Debug / Remote JS Debugging 🚫
  • Run npx react-devtools to verify if React Devtools can connect without Flipper
  • Do not install React Devtools v3 if you have React Native >= 0.61
  • Close any other React Devtools (standalone,...)

usrbowe avatar Apr 22 '20 02:04 usrbowe

port forwarding did the trick for me thanks!

robbienohra avatar Apr 29 '20 19:04 robbienohra

I have a standalone React Native Debugger and it is connecting fine. My app is running on 8081 port. However, my Flipper is not connecting and it is listening to port 56111 .. Any tips? :D

Screenshot 2020-05-02 at 5 53 32 PM

Aung-Myint-Thein avatar May 02 '20 11:05 Aung-Myint-Thein

Port forwarding did not worked for me.

Bohmaster avatar May 04 '20 09:05 Bohmaster

@Aung-Myint-Thein please note that you can run only one of them at the same time, if RN debugger is already connected, Flipper can't, and vice versa. Please note that Flipper currently only supports devTools if the tools are listening to port 8097.

@Bohmaster please note that we need more info for your issue to make it actionable, flipper version, RN version, OS, the status of port 8097 etc.

mweststrate avatar May 04 '20 10:05 mweststrate

@Aung-Myint-Thein please note that you can run only one of them at the same time, if RN debugger is already connected, Flipper can't, and vice versa. Please note that Flipper currently only supports devTools if the tools are listening to port 8097.

@Bohmaster please note that we need more info for your issue to make it actionable, flipper version, RN version, OS, the status of port 8097 etc.

Hi @mweststrate, thank you for your response.

This is my environment:

OS: MacOS HighSierra 10.136 Flipper: 0.37.0 RN: 0.62.2 Node: 12.16.1 Port status: Flipper 17570 rtrovant 29u IPv6 0x1b2c81c78ff3e951 0t0 TCP *:8097 (LISTEN)

When I go to react devtools in Flipper it says: WAITING FOR CONNECTION FROM DEVICE

If I press retry it opens this http://localhost:8081/debugger-ui/.

If I open RN Debugger it works just fine. But I really wanto to give Flipper a try.

Bohmaster avatar May 07 '20 02:05 Bohmaster

@Bohmaster @Aung-Myint-Thein can refer to Quick check section https://github.com/facebook/flipper/issues/1000#issuecomment-617512233 I believe the issue is that you have Remote debugging -> ON, which should be turned off for Flipper.

usrbowe avatar May 11 '20 10:05 usrbowe

@usrbowe where do you turn this setting on/off? I can't find it anywhere on Flipper.

tomcastro avatar May 11 '20 16:05 tomcastro