-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
App runs fine in every case (even when the plugin is enabled) unless vue-devtools
electron app is running, in which case it crashes every time.
Not sure how much more context I can give, please let me know what more help I can give—finding this environment pretty tough to debug so far.
This worked previously, but since doing a significant upgrade of dependencies after a few months (nativescript-vue
to 2.0.0, and other minor version bumps) this integration explodes consistently.
Appreciate any help you can provide, this is making it much harder to build an app!
Relevant main.js
:
import Vue from 'nativescript-vue'
import VueDevtools from 'nativescript-vue-devtools'
if (TNS_ENV !== 'production' && global.VUE_DEVTOOLS) {
Vue.use(VueDevtools)
}
Relevant dependencies:
{
"nativescript-vue": "^2.0.0",
"tns-core-modules": "^5.3.2",
"tns-ios": "^5.3.1",
"nativescript-dev-webpack": "^0.21.2",
"nativescript-socketio": "^3.2.1",
"nativescript-toasty": "^1.3.0",
"nativescript-vue-devtools": "^1.2.0"
}
Full crash log:
Successfully synced application com.samgarson.whatnext on device 39343DEC-018A-4986-A7EE-082112CE7038.
CONSOLE LOG file:///app/vendor.js:14220:24: [ReferenceError: Can't find variable: SocketManager]
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x110454d3b NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool, bool)
2 0x110482e80 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
3 0x110d9f656 ffi_closure_unix64_inner
4 0x110da007a ffi_closure_unix64
5 0x114007f34 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
6 0x114007b32 __CFRunLoopDoTimer
7 0x11400739a __CFRunLoopDoTimers
8 0x114001a1c __CFRunLoopRun
9 0x114000e11 CFRunLoopRunSpecific
10 0x11acfc1dd GSEventRunModal
11 0x11554981d UIApplicationMain
12 0x110d9febd ffi_call_unix64
13 0x12b7e9cd0
JavaScript stack trace:
1 srcBackendJs@file:///app/vendor.js:3904:2237
2 __webpack_require__@file:///app/vendor.js:663:31
3 @file:///app/vendor.js:678:35
4 ../node_modules/@vue/devtools/build/backend.js@file:///app/vendor.js:678:88
5 __webpack_require__@file:///app/bundle.js:76:34
6 connect@file:///app/vendor.js:6981:24
7 setupDevtools@file:///app/vendor.js:14205:23
8 invoke@file:///app/vendor.js:39812:26
9 tick@file:///app/vendor.js:39760:20
10 UIApplicationMain@[native code]
11 _start@file:///app/vendor.js:28702:22
12 run@file:///app/vendor.js:28744:9
13 $start@file:///app/vendor.js:27378:18
14 $start@file:///app/vendor.js:14237:25
15 @file:///app/bundle.js:2886:10
16 ./main.js@file:///app/bundle.js:2890:34
17 __webpack_require__@file:///app/bundle.js:76:34
18 checkDeferredModules@file:///app/bundle.js:45:42
19 @file:///app/bundle.js:149:38
20 anonymous@file:///app/bundle.js:150:12
21 evaluate@[native code]
22 moduleEvaluation@[native code]
23 promiseReactionJob@[native code]
24 require@[n<…>
JavaScript error:
file:///app/vendor.js:3904:2237: JS ERROR TypeError: undefined is not an object (evaluating 'socket.on')
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: undefined is not an object (evaluating 'socket.on')
at
1 srcBackendJs@file:///app/vendor.js:3904:2237
2 __webpack_require__@file:///app/vendor.js:663:31
3 @file:///app/vendor.js:678:35
4 ../node_modules/@vue/devtools/build/backend.js@file:///app/vendor.js:678:88
5 __webpack_require__@file:///app/bundle.js:76:34
6 connect@file:///app/vendor.js:6981:24
7 setupDevtools@file:///app/vendor.js:14205:23
8 invoke@file:///app/vendor.js:39812:26
9 tick@file:///app/vendor.js:39760:20
10 UIApplicationMain@[native code]
11 _start@file:///app/vendor.js:28702:22
12 run@file:///app/vendor.js:28744:9
13 $start@file:///app/vendor.js:27378:18
14 $start@file:///app/vendor.js:14237:25
15 @file:///app/bundle.js:2886:10
16 ./main.js@file:///app/bundle.js:2890:34
17 __webpack_require__@file:///app/bundle.js:76:34
18 checkDeferredModules@file:///app/bundle.js:45:42
19 @file:///app/bundle.js:149:38
2<…>
asologor and amedeekirkpatrick-ych
Metadata
Metadata
Assignees
Labels
No labels