-
Notifications
You must be signed in to change notification settings - Fork 11
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
Help to get working when using Expo? #324
Comments
Hey there, thanks for reaching out! Stoked to hear you want to join the club 🥳 The devtools exchange needs to speak to the running instance of For IOS (emulated)No need to do anything - the virtual device and the host device both share the same network connection For IOS (device)I don't actually know... but I'll find out 👍 For Android (emulated + device)Using ADB with reverse tunneling If this doesn't answer your question, can you provide more info such as:
|
@andyrichardson Thanks so much for getting back to me! I've spent a couple hours on this and still can't get it to work. Because the urql extension has the port hard coded I went about seeing if I could change the port on which Expo serves the debugger. I found this setting and added it to "packagerOpts": {
"port": 7700
} Once that was changed Expo started launching devtools on that port. Debugging Remote JS from the Expo app on Android loads in the devtools, as desired, as evidence by console logs showing in the devtools console. (Meaning the app is talking via port 7700). I thought this would be the winner but sadly, clicking on the Urql tab still shows the "Waiting for Exchange" message. 😢 Have you or anyone on the team gotten it to work? |
@GollyJer you're not at all being a pain! Would be really useful if we could get more information from you; including an example repo and steps that to reproduce the issue. Here's an example:
|
Hey @andyrichardson. Thanks again for the response. Also, I just wanted to point you at this tweet thread in case you didn't see it. |
@andyrichardson Sorry for not posting a reproduction. I thought from the tweet reply from Expo made it clear that any Expo managed project will not work with urql-devtools. Do you want me to create a starter Expo project with urql somewhere? I was assuming you already have one set up and using a graphql endpoint that works for you. If not, let me know and I can get throw one together. Loving urql. This is the last piece of the puzzle. Hoping to help in any way I can. Thanks. Jeremy |
Thanks @GollyJer! Just filling out the reproduction statement would be a huge help (likely no need for a repo for this one)!
I haven't seen the response from Expo but I see no reason why this wouldn't work with expo (in the past, we have tested this out on expo without issue). The problem is most likely that you are running on a device which does not have reverse tunneling set up. The devtools exchange will try to establish a websocket connection with localhost - this will not work if you are using a device without reverse tunnelling (as there is no devtools instance running on your android device).
Thanks for the feedback - will pass it on ❤️
Thanks for the suggestion - this and the chrome devtools protocol are both things we're considering but it's unclear whether this will cover all use cases (expo, native, ios, android, etc) and it's a considerable amount of work to get this implemented. If you have experience with any of this and are looking to contribute, we'd be more than happy to consider proposals + PRs! |
Hey @erquhart, no updates but would be open to contributions 👍 |
Glad to hear it, thank you. And certainly not incumbent on you as OSS maintainers to build or fix anything! I at least wanted to make sure it was clear that it doesn't currently work with Expo, and that this has indeed been acknowledged by the Expo team, as that seemed to be a point of disagreement from your last comment:
|
Hi. I'm trying to get urql-devtools working with my Expo project.
Any help is greatly appreciated!
https://stackoverflow.com/q/65161825/25197
The text was updated successfully, but these errors were encountered: