Skip to content

NativeScript encountered a fatal error: Error: Value is not a class #133

@karo-dc

Description

@karo-dc

I am using your sample code from readme.md for ios.
And I got current error after launching app.
full error text

***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x1011bb73c NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool, bool)
2 0x1011ec068 -[TNSRuntime executeModule:referredBy:]
3 0x1005cc748
4 0x184d7dfc0
JavaScript stack trace:
1 NSStringFromClass@file:///app/vendor.js:17108:83
2 start@file:///app/vendor.js:17108:83
3 run@file:///app/vendor.js:17143:8
4 $start@file:///app/vendor.js:16333:18
5 @file:///app/bundle.js:2487:10
6 ./app.ts@file:///app/bundle.js:2492:34
7 webpack_require@file:///app/bundle.js:76:34
8 checkDeferredModules@file:///app/bundle.js:45:42
9 @file:///app/bundle.js:149:38
10 anonymous@file:///app/bundle.js:150:12
11 evaluate@[native code]
12 moduleEvaluation@[native code]
13 @[native code]
14 promiseReactionJob@[native code]
15 require@[native code]
16 anonymous@file:///app/starter.js:2:8
17 evaluate@[native code]
18 moduleEvaluation@[native code]
19 @[native code]
20 promiseReactionJob@[native code]
JavaScript error:
file:///app/vendor.js:17108:83: JS ERROR Error: Value is not a class.
*** JavaScript call stack:
(
)
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Value is not a class.
at
1 NSStringFromClass@file:///app/vendor.js:17108:83
2 start@file:///app/vendor.js:17108:83
3 run@file:///app/vendor.js:17143:8
4 $start@file:///app/vendor.js:16333:18
5 @file:///app/bundle.js:2487:10
6 ./app.ts@file:///app/bundle.js:2492:34
7 webpack_require@file:///app/bundle.js:76:34
8 checkDeferredModules@file:///app/bundle.js:45:42
9 @file:///app/bundle.js:149:38
10 anonymous@file:///app/bundle.js:150:12
11 evaluate@[native code]
12 moduleEvaluation@[native code]
13 @[native code]
14 promiseReactionJob@[native code]
15 require@[native code]
16 anonymous@file:///app/starter.js:2:8
17 evaluate@[native code]
18 moduleEvaluation@[native code]
19 @[native code]
20 promiseReactionJob@[native code]
', reason: '(null)'
*** First throw call stack:
(0x185426d8c 0x1845e05ec 0x1011bbe60 0x1011ec068 0x1005cc748 0x184d7dfc0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions