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

Fix: allow Hermes Debugger to connect from Flipper #1086

Merged
merged 3 commits into from
Mar 31, 2020

Conversation

mweststrate
Copy link
Contributor

Summary:

This change reflects D20526486 by @rickhanlonii at Facebook: when Running Hermes Debugger from inside Flipper, the origin is localhost, but not the metro port. This fixes facebook/flipper#660 (comment)

Test Plan:

  • Init fresh project with React Native
  • Enable Hermes
  • Open Flipper, start the Hermes Debugger. This will generate the error in the metro logs: "Error: Unauthorized request from http://localhost:3000. This may happen because of a conflicting browser extension. Please try to disable it and try again."
  • After this change (tested by directly editing in node_modules) and restart metro, the debugger does connect:

Screen Shot 2020-03-31 at 11 16 51

This change reflects D20526486 by @rickhanlonii  at Facebook: when Running Hermes Debugger from inside Flipper, the origin is localhost, but not the metro port. This fixes facebook/flipper#660 (comment)
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thymikee
Copy link
Member

A round of yarn lint --fix should fix linter :)

@mweststrate
Copy link
Contributor Author

My github edit + circle ci workflow is the coolest and least efficient one possible :P. (and I actually have local checkout, so not sure why I am doing this, my one-last-error strategy is clearly not paying off😬)

@thymikee thymikee merged commit 9a5062c into react-native-community:master Mar 31, 2020
@rickhanlonii
Copy link
Collaborator

@mweststrate does this mean that the Hermes debugger is available in OSS now?

@thymikee is it possible to get this into the 0.62.1 patch Friday?

@mweststrate
Copy link
Contributor Author

@rickhanlonii yes :)

@thymikee
Copy link
Member

thymikee commented Apr 1, 2020

@rickhanlonii almost, I'll make a release in a moment. There's no need to patch React Native, since any CLI v4.x is covered by semver range

@mweststrate
Copy link
Contributor Author

mweststrate commented Apr 1, 2020 via email

@thymikee
Copy link
Member

thymikee commented Apr 1, 2020

@mweststrate you're right. Invalidating CLI entries in lock file is necessary.

@thymikee
Copy link
Member

thymikee commented Apr 1, 2020

Released in v4.5.1

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

Successfully merging this pull request may close these issues.

Question: Duplicate classes when using flipper alongside react-native
3 participants