-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to connect to devtool #8
Comments
Exactly same issue here. Seems below nativescript-socket isn't returning correct stuff
|
Same issue here - followed starter guide exactly. |
I have the same issue here, no errors, just not connecting. |
Same here as the above comments. |
I've get the same issue, but it seems to happen when tns device version is updated to 5.0.0
It work again when you rollback to the 4.2.0 version Make change effect |
Same issue |
1 similar comment
Same issue |
Same issue here |
Same here. It was working till I followed the steps to install and enable vue devtools. |
Same here |
1 similar comment
Same here |
I tried it a few times without success, but now its working. What i missed the first few tries was to confirm that electron is allowed to use the network (WIn10). Win10 with a real device connected via USB.
Using it like documented:
|
Can't make it connect with --hmr as well unfortunatelly. |
Can anyone share with any solution to this problems?? Maybe someone from Nativescripte-vue team could answer this quetion?? |
Does anyone have any updates about this issue or any new solutions? Just started using nativescript-vue and ran into this also. |
Not sure if nativescript-vue is there yet and I have not been successful in
getting help or finding answers. It looks developers maintaining
nativescript-vue are few and so are people using it. I had to switch to
react-native.
…On Thu, Mar 14, 2019 at 7:48 PM Brandon Whisnant ***@***.***> wrote:
Does anyone have any updates about this issue or any new solutions? Just
started using nativescript-vue and ran into this also.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFlMVnTK5_zMd7czoEXL0rIa5iy8HmcKks5vWt_MgaJpZM4YdQOP>
.
|
@kfiras I will be switching to react native as well. Thank you for your reply. |
Same issue |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 0.142 ETH (19.58 USD @ $137.9/ETH) attached to it.
|
See this boilerplate repo to reproduce the issue (you will need to set the https://github.com/wpatter6/nsvue-devtools-test I am able to use termux with nmap to scan from my debugging device and see that the IP/port is open. I am also able to make a very basic website, add a vue instance, and paste the script tag shown in the developer tools UI to show that the devtools are working properly. |
Issue Status: 1. Open 2. Cancelled Work has been started. These users each claimed they can complete the work by 6 hours ago. 1) axelios has started work.
Question For your soon response thank you very much Ralph Neumann Learn more on the Gitcoin Issue Details page. 2) fabioluxx has started work. I will try to reproduce your environment with provided information, check for errors and find a solution Learn more on the Gitcoin Issue Details page. |
I am using Windows 10 |
There have been some issues with some of those packages. Replace:
This is a temporary solution while the template and |
@tralves That doesn't seem to fix it for me. Same behavior with these updated deps after wiping out node_modules and platforms and re-installing/building Side note, my app uses |
Issue Status: 1. Open 2. Cancelled The funding of 0.142 ETH (20.09 USD @ $141.46/ETH) attached to this issue has been cancelled by the bounty submitter
|
I did this and i run |
Stink. Just went through this again with no luck. If I only had a brain cool enough to fix this...I totally would. But alas - I do not. |
The same issue any update I'm using an emulator
when I run |
I was having the same issue using an Android 9.0 (android-28) emulator. After downgrading to Android 8.1.0 (android-27) it worked as advertised in the docs. |
Does anyone have any update on this issue? |
Also same issue, clean nativescript dev environment, following directions. Stock Android 9 AVD that came with Android Studio. |
I've been able to get this working finally on all 3 of my dev machines. Previously, it only worked on one and I finally clued into the API 27 issue that @calebbergman also mentioned as on the one working machine only had a single image installed and it was for API 27. To reiterate, this issue doesn't happen for me with Emulators running API 27 or lower images. This is because in API 28, Android has started blocking all cleartext traffic by default. Because vue devtools is using What I have done is edited my <?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">localhost</domain>
<domain includeSubdomains="false">10.0.2.2</domain>
</domain-config>
</network-security-config> I've added this in The other thing I have done is explicity setup vue-devtools to connect to 10.0.2.2 in my main entrypoint: import VueDevtools from 'nativescript-vue-devtools';
Vue.use(VueDevtools, { host: '10.0.2.2' }); Would be a good idea to purge your platforms folder after making the changes and then serve things up as normal to see if it starts working for you on API 28 and greater images. |
@jawa-the-hutt What an amazing find. Great job. |
Nice find @jawa-the-hutt! I unfortunately wasn't able to use this solution to connect to devtools on Android, but the HTTP connection clue led me to a solution on iOS. Android recap: I tried adding a However, enabling the iOS equivalent flag To repeat the warning above, make sure you understand the security risk before making these changes. Enabling |
You kidding me... Just wasted 4 hours of initial setup to find this. |
I was able to get dev tools working by simply adding the following flag to the existing
Note: if you've added the It says:
|
@jonbwalker .. Thanks this was the easiest fix of them all for me. Is this unsafe in production? |
@XEQTIONR I can't say if it's safe or unsafe for your specific needs, but I'll say this: just make sure you fully understand the implications of allowing clear text traffic in production. |
I'm following the steps pointed out in this issue. However, every time I try to use VueDevtools I get the problem that my development machine cannot connect to my android device or emulator, and when I'm not getting that first problem then I get this exception on my development device which is running Android 6.0:
I'm seriously thinking on switching over to another solution as there is not currently a way for me to debug my mobile applications with nativescript vue. |
Having the same issue here, waiting for connection forever. Using @jonbwalker 's solution did not help. Am I doing it right; starting the emulator in Android Studio and then running 'vue-devtools' in the NS CLI? This issue seems pretty detrimental to NativeScript-Vue as trying to debug an app without devtools it is pretty hard. |
@jonbwalker workaround made my day, but Devtool shows me this. The project is recently created. |
In my case I solved it by adding a correct IP... I was using IP of my mobile device instead of my computer's IP Also make sure to delete what is in the /platforms folder, and to run @Syltis With a real device vue-devtools must be inevitably started before, but with an emulator I don't know maybe it's the same |
Sadly @jonbwalker solution did not work for me.
Is set in my application manifest. Made sure the IP is correct and load order is correct. This is not an issue for older android versions, so the issue does seem to still be cleartext related on new versions. I sit on "Waiting for connection". |
Not working for me neither using my Android device : Development machine : macOs Catalina init steps :
code in app.js :
Code in AndroidManifest.xml :
use steps :
when launching the npx vue-devtools command, an Electron app with devtools appear with the message Waiting for connection... A modal opens from macOS asking me if I accept incoming connections. I accept. clean package.json :
|
Try |
Thanks @rigor789 ! It works like a charm now ! 🎉 It should probably be noted in the tutorial : https://nativescript-vue.org/en/docs/getting-started/vue-devtools/ at Step one |
Unfortunately, the solution from @rigor789 does not work on Mac with m1 |
Hi, I am trying out nativescript vue, following the starter guide in the official documentation and creating a new app using the vue init command and trying to connect to the dev tool.
I had no problem viewing the app on android emulator, however, I was unable to get the dev tool connected. I was stuck with
Waiting for connection...
with steps to add script at the top of the page you want to debug.To Reproduce:
npm install --save @vue/devtools@beta nativescript-toast nativescript-socket.io nativescript-vue-devtools
import VueDevtools from 'nativescript-vue-devtools' Vue.use(VueDevtools)
vue-devtools
in one terminalrm -rf platforms && tns run android --bundle
on another terminalThe text was updated successfully, but these errors were encountered: