-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Use standalone mode #141
Comments
Hi @alexzhang1030 ! thanks! so there is something missing, when I try these changes nativescript-vue/nativescript-vue#1074 the
On the contrary, if global.document is undefined (by commenting this line https://github.com/nativescript-vue/nativescript-vue/blob/1d1a1540402d16f5097e2607cf9e91133af52829/devtools.js#L22) I get the following
but the application remains in an intermediate state between waiting and the debug screen So, it seems that globalThis.global.document being undefined seems to do something else. Is there anything that standalone mode needs to work from Note: without the PR changes that I mentioned in the devtools 6.x version it works fine |
Thanks for your feedback 😉 we will figure it out later |
Probably need your help /cc @webfansplz |
I've tested a Vue3 + webpack project created by vue-cli, and |
I'm unsure if this relates to ESM, CJS, or Webpack, but it's a clue. |
I think the only way is to install the nativescript development elements and run the sample application that has under the PR branch. Here is the documentation to install the setup. If you have any questions I can try to help you or you can join the NativeScript discord server, it may be faster. Although if you have found the same thing with vuetify it may be faster to solve it with it |
Hi @vallemar, you can try it again with:
|
Hi @webfansplz ! For me this version still doesn't work with v7.0.6, would you have a vuetify sample? I think we are loading vue-detools before the application, @rigor789 can you confirm this? |
Can you help me create a mini repo with Vuetify? thanks. |
We're loading it before the Vue app yes, and also calling @webfansplz how does the communication between the app and devtools work, I saw RPC in there, but I presume there's some kind of socket too, or just polling? Wonder if we're not making the actual connection (since we're not exactly in a web environment, we might need to polyfill something in addition). |
The standalone mode uses socket, and it's the same as the old devtools implementation. |
Rebuilt The issue seems to be related to the devtools-hook being created after the custom renderer. I was able to call in setDevtoolsHook(global.__VUE_DEVTOOLS_GLOBAL_HOOK__ as any, global); Reconnects/initial connection seems to be an issue - have to reopen the app for the initial connection, and reconnecting the app doesn't work - will investigate that further later, but this is promising! |
Good catch ! I submitted a PR (#164) to resolve it. Can you try the |
@webfansplz awesome, thanks for the updates! Looks like that works a lot better now, a few notes on latest:
Screen.Recording.2024-01-11.at.10.13.35.PM.mov |
Hi @rigor789 Thanks for the feedback and glad to see it works now
|
@webfansplz For 2. I missed that at first, but testing it now with it, and seems like it doesn't change it. But it does look like our bundle is somehow still loading these in the wrong order. I'll try and debug that. I believe it should work once I figure out why the order is incorrect. |
Okay, I think it should work when we solve the import order issue. So let's close the issue, and please feel free to reopen the issue if you still have issues after solving the import order issue. |
Thanks for your help @webfansplz! |
Hi, is it possible to use Standalone mode with webpack?
I am trying to call .connect and the promise resolves but when doing console.log(devtools) I see that connect is false
The text was updated successfully, but these errors were encountered: