-
-
Notifications
You must be signed in to change notification settings - Fork 246
Description
Hi,
We are testing the next
version of nativescript-vue
and the webpack
tag of NativeScript in preparation for 6.0.0. When changing running an app on ios tns run ios
with the following setup the below exception is thrown after you make changes to the app and it is livesynced.
Setup:
- Install
webpack
tag of NativeScript globally:npm i -g nativescript@webpack
2.Installwebpack
tag ofnativescript-dev-webpack
:npm i nativescript-dev-webpack@webpack
- Install
next
tag ofnativescript-vue
:npm i nativescript-vue@next
- Run an the app on iOS:
tns run ios
- App is synced and started correctly
- Make a change to the source of the app to trigger livesync
- Changes are synced, app is restarted and when it start it crashes
mcsofamiorkov:demo-vue amiorkov$ tns run ios
Searching for devices...
Preparing project...
Found peer TypeScript 3.4.5
Bundling application for entryPath ./main...
File change detected. Starting incremental webpack compilation...webpack is watching the files…
Hash: 9b9444bead59215a9361
Version: webpack 4.27.1
Time: 27920ms
Built at: 11/06/2019 16:39:37
Asset Size Chunks Chunk Names
bundle.js 503 KiB bundle [emitted] bundle
package.json 255 bytes [emitted]
runtime.js 71.4 KiB runtime [emitted] runtime
tns_modules/tns-core-modules/inspector_modules.js 763 bytes tns_modules/tns-core-modules/inspector_modules [emitted] tns_modules/tns-core-modules/inspector_modules
vendor.js 6.65 MiB vendor [emitted] vendor
Entrypoint bundle = runtime.js vendor.js bundle.js
Entrypoint tns_modules/tns-core-modules/inspector_modules = runtime.js vendor.js tns_modules/tns-core-modules/inspector_modules.js
[../../src/ui-listview.ts] /Users/amiorkov/Desktop/Work/nativescript-ui-listview/src/ui-listview.ts 84.8 KiB {bundle} [built]
[../../src/vue/component.ts] /Users/amiorkov/Desktop/Work/nativescript-ui-listview/src/vue/component.ts 9.6 KiB {bundle} [built]
[../../src/vue/index.ts] /Users/amiorkov/Desktop/Work/nativescript-ui-listview/src/vue/index.ts 893 bytes {bundle} [built]
[./ sync ^./app.(css|scss|less|sass)$] . sync nonrecursive ^./app.(css|scss|less|sass)$ 174 bytes {bundle} [built]
[./ sync recursive (root|page).(xml|css|js|ts|scss)$] . sync (root|page).(xml|css|js|ts|scss)$ 160 bytes {bundle} [built]
[./examples/FirstVisibleIndex.ts] 1.5 KiB {bundle} [built]
[./examples/GettingStarted.ts] 1.4 KiB {bundle} [built]
[./examples/GettingStartedHo.ts] 1.37 KiB {bundle} [built]
[./examples/GridLayout.ts] 1.43 KiB {bundle} [built]
[./examples/Group.ts] 1.47 KiB {bundle} [built]
[./examples/GroupScrollTo.ts] 2.16 KiB {bundle} [built]
[./examples/GroupWithHeaderFooter.ts] 2.43 KiB {bundle} [built]
[./examples/index.ts] 1.67 KiB {bundle} [built]
[./main.ts] 1.77 KiB {bundle} [built]
[./views/index.ts] 140 bytes {bundle} [built]
+ 181 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (ios)
Successfully transferred bundle.js on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Successfully transferred package.json on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Successfully transferred runtime.js on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Successfully transferred tns_modules on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Successfully transferred tns-core-modules on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Successfully transferred inspector_modules.js on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Successfully transferred vendor.js on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Restarting application on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6...
Successfully synced application org.nativescript.demovueradlistview on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
CONSOLE INFO file:///app/vendor.js:135:32: HMR: Hot Module Replacement Enabled. Waiting for signal.
CONSOLE LOG file:///app/vendor.js:10585:14: 'NativeScript-Vue has "Vue.config.silent" set to true, to see output logs set it to false.'
File change detected. Starting incremental webpack compilation...
Hash: 5d763912313423b56751
Version: webpack 4.27.1
Time: 4240ms
Built at: 11/06/2019 16:40:49
Asset Size Chunks Chunk Names
9b9444bead59215a9361.hot-update.json 48 bytes [emitted]
bundle.9b9444bead59215a9361.hot-update.js 224 KiB bundle [emitted] bundle
bundle.js 503 KiB bundle [emitted] bundle
runtime.js 71.4 KiB runtime [emitted] runtime
tns_modules/tns-core-modules/inspector_modules.js 763 bytes tns_modules/tns-core-modules/inspector_modules [emitted] tns_modules/tns-core-modules/inspector_modules
- 1 hidden asset
Entrypoint bundle = runtime.js vendor.js bundle.js bundle.9b9444bead59215a9361.hot-update.js
Entrypoint tns_modules/tns-core-modules/inspector_modules = runtime.js vendor.js tns_modules/tns-core-modules/inspector_modules.js
[../../src/ui-listview.ts] /Users/amiorkov/Desktop/Work/nativescript-ui-listview/src/ui-listview.ts 84.8 KiB {bundle} [built]
[./ sync ^./app.(css|scss|less|sass)$] . sync nonrecursive ^./app.(css|scss|less|sass)$ 174 bytes {bundle} [built]
[./ sync recursive (root|page).(xml|css|js|ts|scss)$] . sync (root|page).(xml|css|js|ts|scss)$ 160 bytes {bundle} [built]
[./examples/FirstVisibleIndex.ts] 1.5 KiB {bundle} [built]
[./examples/index.ts] 1.67 KiB {bundle} [built]
- 191 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
Successfully transferred bundle.9b9444bead59215a9361.hot-update.js on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
Successfully transferred 9b9444bead59215a9361.hot-update.json on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
NativeScript debugger has opened inspector socket on port 50328 for org.nativescript.demovueradlistview.
Refreshing application on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6...
CONSOLE LOG file:///app/vendor.js:23864:12: 'Loading inspector modules...'
CONSOLE LOG file:///app/vendor.js:23874:12: 'Finished loading inspector modules.'
NativeScript debugger attached.
CONSOLE INFO file:///app/vendor.js:135:32: HMR: Checking for updates to the bundle with hmr hash 9b9444bead59215a9361.
CONSOLE WARN file:///app/vendor.js:136:32: HMR: Ignored an update to unaccepted module:
CONSOLE WARN file:///app/vendor.js:136:32: HMR: ➭ ../../src/ui-listview.ts
CONSOLE WARN file:///app/vendor.js:136:32: HMR: ➭ ../../src/vue/index.ts
CONSOLE WARN file:///app/vendor.js:136:32: HMR: ➭ ./main.ts
CONSOLE ERROR file:///app/vendor.js:137:34: HMR: Cannot apply update with hmr hash 9b9444bead59215a9361.
CONSOLE ERROR file:///app/vendor.js:137:34: HMR: Aborted because ../../src/ui-listview.ts is not accepted
Update propagation: ../../src/ui-listview.ts -> ../../src/vue/index.ts -> ./main.ts
Restarting application on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6...
NativeScript debugger detached.
Successfully synced application org.nativescript.demovueradlistview on device CA4FE147-D326-444F-96CD-7F74BC5D2AA6.
CONSOLE INFO file:///app/vendor.js:135:32: HMR: Hot Module Replacement Enabled. Waiting for signal.
CONSOLE INFO file:///app/vendor.js:135:32: HMR: Checking for updates to the bundle with hmr hash 9b9444bead59215a9361.
CONSOLE WARN file:///app/vendor.js:136:32: HMR: Ignored an update to unaccepted module:
CONSOLE WARN file:///app/vendor.js:136:32: HMR: ➭ ../../src/ui-listview.ts
CONSOLE WARN file:///app/vendor.js:136:32: HMR: ➭ ../../src/vue/index.ts
CONSOLE WARN file:///app/vendor.js:136:32: HMR: ➭ ./main.ts
CONSOLE ERROR file:///app/vendor.js:137:34: HMR: Cannot apply update with hmr hash 9b9444bead59215a9361.
CONSOLE ERROR file:///app/vendor.js:137:34: HMR: Aborted because ../../src/ui-listview.ts is not accepted
Update propagation: ../../src/ui-listview.ts -> ../../src/vue/index.ts -> ./main.ts
CONSOLE LOG file:///app/vendor.js:10585:14: 'NativeScript-Vue has "Vue.config.silent" set to true, to see output logs set it to false.'
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x10d7a9cdf NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2 0x10d7dfee0 NativeScript::FFICallbackNativeScript::ObjCMethodCallback::ffiClosureCallback(ffi_cif*, void*, void**, void*)
3 0x10e104956 ffi_closure_unix64_inner
4 0x10e10537a ffi_closure_unix64
5 0x1109d0a6f _CFXRegistrationPost
6 0x1109d07b3 ___CFXNotificationPost_block_invoke
7 0x110ab45e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:]
8 0x1109d0101 _CFXNotificationPost
9 0x10e8fbeaf -[NSNotificationCenter postNotificationName:object:userInfo:]
10 0x111ecefab -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:]
11 0x111ed40c6 -[UIApplication _runWithMainScene:transitionContext:completion:]
12 0x1117196d6 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke
13 0x111721fce +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:]
14 0x1117192ec -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]
15 0x111719c48 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:]
16 0x111717fba __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke
17 0x111717c71 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]
18 0x11171c9b6 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke
19 0x11171d610 _performActionsWithDelayForTransitionContext
20 0x11171c71d -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]
21 0x1117216d0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:]
22 0x111ed29a8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:]
23 0x111a89dfa -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]
24 0x11ab25125 -[FBSSceneImpl _didCreateWithTransitionContext:completion:]
25 0x11ab2eed6 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2
26 0x11ab2e700 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke
27 0x110fd5d02 _dispatch_client_callout
28 0x110fd8d41 _dispatch_block_invoke_direct
29 0x11ab60146 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK
30 0x11ab5fdfe -[FBSSerialQueue _performNext]
31 0x11ab60393 -[FBSSerialQueue _performNextFromRunLoopSource]
JavaScript stack trace:
1 getFrameInstance@file:///app/vendor.js:9248:24
2 mounted@file:///app/vendor.js:9354:31
3 invokeWithErrorHandling@file:///app/vendor.js:3871:61
4 callHook@file:///app/vendor.js:7083:30
5 insert@file:///app/vendor.js:6015:15
6 invokeInsertHook@file:///app/vendor.js:7674:34
7 patch@file:///app/vendor.js:7899:21
8 _update@file:///app/vendor.js:6800:28
9 updateComponent@file:///app/vendor.js:6929:17
10 get@file:///app/vendor.js:4373:29
11 Watcher@file:///app/vendor.js:4360:48
12 mountComponent@file:///app/vendor.js:6936:14
13 @file:///app/vendor.js:14449:16
14 notify@file:///app/vendor.js:19045:23
15 @[native code]
16 notifyAppStarted@file:///app/vendor.js:15149:32
17 didFinishLaunchingWithOptions@file:///app/vendor.js:15140:26
18 @[native code]
19 onReceive@file:///app/vendor.js:15012:28
20 UIApplicationMain@[native code]
21 _start@file:///app/vendor.js:15335:22
22 run@file:///app/vendor.js:15377:9
23 $start@file:///app/vendor.js:14452:18
24 @file:///app/bundle.js:4426:<…>
JavaScript error:
file:///app/vendor.js:9248:24: JS ERROR TypeError: undefined is not an object (evaluating 'frame.id')