I'm having trouble with the NativeScript Photo Album tutorial. I'm currently in step 3 where I have to download the NativeScript companion app and test the project in my iPhone (5c). When I scan the QR code from the NS app it opens safari and then redirects me to the NS app. Now the app will crash and close. When I open the app again, I see what it looks like an error log with the following message:
app/tns_modules/ui/builder/component-builder.js:70 Error: Cannot create module ui/gridlayout. Error: Failed to find module 'ui/gridlayout' relative to '/app/tns_modules/ui/builder/component-builder.js'. Computed path: /var/mobile/Containers/Data/Application/EA508F7C-225E-4071-B31E-9D1DDF09704F/Documents/application/app/tns_modules/ui/gridlayout.js. StackTrace: ModuleError
__findModule
__loadModule
require
getComponentModule@/app/tns_modules/ui/builder/component-builder.js:65:33
/app/tns_modules/ui/builder/builder.js:98:74
/app/tns_modules/xml/xml.js:107:20
parse@/app/tns_modules/js-libs/easysax/easysax.js:721:34
parse@/app/tns_modules/xml/xml.js:154:27
parseInternal@/app/tns_modules/ui/builder/builder.js:143:24
/app/tns_modules/ui/builder/builder.js:223:44
readText@/app/tns_modules/file-system/file-system-access.js:204:22
loadInternal@/app/tns_modules/ui/builder/builder.js:222:28
load@/app/tns_modules/ui/builder/builder.js:210:39
pageFromBuilder@/app/tns_modules/ui/frame/frame-common.js:88:31
resolvePageFromEntry@/app/tns_modules/ui/frame/frame-common.js:61:35
navigate@/app/tns_modules/ui/frame/frame-common.js:131:40
navigate@/app/tns_modules/ui/frame/frame.js:33:43
onLoaded@/app/tns_modules/ui/frame/frame.js:27:26
viewDidLoad@/app/tns_modules/ui/frame/frame.js:163:29
makeKeyAndVisible@[native code]
applicationDidFinishLaunchingWithOptions@/app/tns_modules/application/application.js:68:38
UIApplicationMain@[native code]
start@/app/tns_modules/application/application.js:124:26
anonymous@/app/app.js:5:18
__executeModule
__loadModule
JavaScript call stack:
(null)
0] getComponentModule@/app/tns_modules/ui/builder/component-builder.js:70:24(null)
1] /app/tns_modules/ui/builder/builder.js:98:74(null)
2] /app/tns_modules/xml/xml.js:107:20(null)
3] parse@/app/tns_modules/js-libs/easysax/easysax.js:721:34(null)
4] parse@/app/tns_modules/xml/xml.js:154:27(null)
5] parseInternal@/app/tns_modules/ui/builder/builder.js:143:24(null)
6] /app/tns_modules/ui/builder/builder.js:223:44(null)
7] readText@/app/tns_modules/file-system/file-system-access.js:204:22(null)
8] loadInternal@/app/tns_modules/ui/builder/builder.js:222:28(null)
9] load@/app/tns_modules/ui/builder/builder.js:210:39(null)
10] pageFromBuilder@/app/tns_modules/ui/frame/frame-common.js:88:31(null)
11] resolvePageFromEntry@/app/tns_modules/ui/frame/frame-common.js:61:35(null)
12] navigate@/app/tns_modules/ui/frame/frame-common.js:131:40(null)
13] navigate@/app/tns_modules/ui/frame/frame.js:33:43(null)
14] onLoaded@/app/tns_modules/ui/frame/frame.js:27:26(null)
15] viewDidLoad@/app/tns_modules/ui/frame/frame.js:163:29(null)
16] makeKeyAndVisible@[native code](null)
17] applicationDidFinishLaunchingWithOptions@/app/tns_modules/application/application.js:68:38(null)
18] UIApplicationMain@[native code](null)
19] start@/app/tns_modules/application/application.js:124:26(null)
20] anonymous@/app/app.js:5:18(null)
21] __executeModule(null)
22] __loadModule
Thread 0 Crashed:
0] NativeScript WTFCrash
1] NativeScript NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*)
2] NativeScript NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
3] NativeScript ffi_closure_inner
4] NativeScript ffi_closure_SYSV
5] UIKit <redacted>
6] UIKit <redacted>
7] UIKit <redacted>
8] UIKit <redacted>
9] NativeScript ffi_call_SYSV
10] NativeScript NativeScript::ObjCMethodCall::derivedExecuteCall(JSC::ExecState*, unsigned char*)
11] NativeScript long long NativeScript::FFICall::executeCall<NativeScript::ObjCMethodCall>(JSC::ExecState*)
12] NativeScript JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*)
13] NativeScript llint_slow_path_call
14] NativeScript llint_entry
15] NativeScript vmEntryToJavaScript
16] NativeScript JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
17] NativeScript JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
18] NativeScript JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
19] NativeScript NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::callFunction(JSC::JSValue const&, JSC::ArgList const&, void*)
20] NativeScript NativeScript::ObjCMethodCallback::ffiClosureCallback(void*, void**, void*)
21] NativeScript NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
22] NativeScript ffi_closure_inner
23] NativeScript ffi_closure_SYSV
24] UIKit <redacted>
25] UIKit <redacted>
26] UIKit <redacted>
27] UIKit <redacted>
28] FrontBoardServices <redacted>
29] FrontBoardServices <redacted>
30] CoreFoundation <redacted>
31] CoreFoundation <redacted>
32] CoreFoundation <redacted>
33] CoreFoundation CFRunLoopRunSpecific
34] CoreFoundation CFRunLoopRunInMode
35] UIKit <redacted>
36] UIKit UIApplicationMain
37] NativeScript ffi_call_SYSV
38] NativeScript NativeScript::FFIFunctionCall::derivedExecuteCall(JSC::ExecState*, unsigned char*)
39] NativeScript long long NativeScript::FFICall::executeCall<NativeScript::FFIFunctionCall>(JSC::ExecState*)
40] NativeScript JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*)
41] NativeScript llint_slow_path_call
42] NativeScript llint_entry
43] NativeScript llint_entry
44] NativeScript llint_entry
45] NativeScript llint_entry
46] NativeScript vmEntryToJavaScript
47] NativeScript JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
48] NativeScript JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
49] NativeScript JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&)
50] NativeScript -[TNSRuntime executeModule:]
51] NativeScript main
Hope you can solve this. Thank you.