Closed sis0k0 closed 4 years ago
@sis0k0 The issue is indeed that Preview does not include nativescript-socketio
. Even if it did, the user would have to configure NativeScript-Vue Devtools to connect to their IP where they are running VueDevtools, I don't see how it could work out of the box unfortunately.
What we could do is just to make sure the app doesn't crash when running tns preview
.
This is likely because we don't return anything when we fail to require socketio
We can probably return an object that has on
and emit
methods that do nothing.
Or even better, we try/catch before overriding the $start
method on the Vue prototype.
Environment
nativescript
: 6.0.3nativescript-vue
: 2.4.0Describe the bug Using the
nativescript-vue-devtools
plugin withtns preview
causes the app to crash with the following error:To Reproduce Execute:
Make sure that
nativescript-vue-devtools
is used: app/main.jsExpected behavior Debugging with
nativescript-vue-devtools
should work withtns preview
.Additional context The
nativescript-vue-devtools
package usesnativescript-socketio
which has native dependencies, but isn't part of theNativeScript Preview
application. That might be the reason for the error.