Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karo-dc opened this issue Nov 22, 2018 · 5 comments
Open

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

karo-dc opened this issue Nov 22, 2018 · 5 comments

Comments

@karo-dc
Copy link

karo-dc commented Nov 22, 2018

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)

@christocracy
Copy link
Member

JS ERROR Error: Value is not a class.

And I don't think I use the symbol Value anywhere in my code.

@karo-dc
Copy link
Author

karo-dc commented Nov 23, 2018

@christocracy look, when I use this part 'app.ios.delegate = MyDelegate;', after that I get exception

@karo-dc
Copy link
Author

karo-dc commented Nov 23, 2018

What can I do to fix this?

@karo-dc
Copy link
Author

karo-dc commented Nov 23, 2018

now I have got this one
'NativeScript encountered a fatal error: TypeError: Attempted to assign to readonly property.

@ouss4m4
Copy link

ouss4m4 commented May 2, 2019

@karo-dc you ever fixed that readonly property error ? i just updated my nativescript app to 5.3 and it hit me just like that, only on IOS , android is working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants