nativescript-background-geolocation-lt icon indicating copy to clipboard operation
nativescript-background-geolocation-lt copied to clipboard

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

Open karo-dc opened this issue 6 years ago • 5 comments

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)

karo-dc avatar Nov 22 '18 21:11 karo-dc

JS ERROR Error: Value is not a class.

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

christocracy avatar Nov 22 '18 22:11 christocracy

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

karo-dc avatar Nov 23 '18 08:11 karo-dc

What can I do to fix this?

karo-dc avatar Nov 23 '18 08:11 karo-dc

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

karo-dc avatar Nov 23 '18 16:11 karo-dc

@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

ouss4m4 avatar May 02 '19 09:05 ouss4m4