triniwiz/nativescript-toasty

iOS - Can't find variable: CSToastManager

sandoche opened this issue · 3 comments

The plugin works well on Android but crashes on iOS with the following error:

2019-06-04 20:31:08.717413+0200 TextBlastapp[4744:29297] JavaScript stack trace:
2019-06-04 20:31:08.717517+0200 TextBlastapp[4744:29297] 1   setToastPosition@file:///app/vendor.js:8272:23
2   Toasty@file:///app/vendor.js:8213:26
3   preview@file:///app/bundle.js:272:71
4   preview@[native code]
5   notify@file:///app/vendor.js:26179:23
6   _emit@file:///app/vendor.js:26207:18
7   tap@file:///app/vendor.js:39114:18
8   UIApplicationMain@[native code]
9   _start@file:///app/vendor.js:22469:22
10  run@file:///app/vendor.js:22511:9
11  $start@file:///app/vendor.js:21528:18
12  @file:///app/bundle.js:2033:10
13  ./main.js@file:///app/bundle.js:2037:34
14  __webpack_require__@file:///app/runtime.js:751:34
15  checkDeferredModules@file:///app/runtime.js:44:42
16  webpackJsonpCallback@file:///app/runtime.js:31:39
17  anonymous@file:///app/bundle.js:2:61
18  evaluate@[native code]
19  moduleEvaluation@[native code]
20  promiseReactionJob@[native code]
21  require@[native code]
22  anonymous@file:///app/starter.js:3:8
23  evaluate@[native code]
24  moduleEvaluation@[native code]
25  promiseReactionJob@[native code]
2019-06-04 20:31:08.717728+0200 TextBlastapp[4744:29297] JavaScript error:
2019-06-04 20:31:08.717867+0200 TextBlastapp[4744:29297] file:///app/vendor.js:8272:23: JS ERROR ReferenceError: Can't find variable: CSToastManager

file:///app/vendor.js:8272:23: JS ERROR ReferenceError: Can't find variable: CSToastManager
(lldb) 

I am using Nativescript 5.4.0 before updating it it worked good.

Build issue most likely. Demo app is functioning correctly as are a few projects I work on.

Are you on Nativescript 5.4.0 ?

Yes. Try running the demo app. I believe I updated it just the other day and didn't encounter any errors.