triniwiz / nativescript-toasty

:bread: NativeScript toast plugin :bread:
Other
44 stars 21 forks source link

[iOS] Error on Nativescript 6 #25

Closed janossuta closed 5 years ago

janossuta commented 5 years ago

Hi,

I've recently updated to the latest Nativescript version 6 and after that I started to get an error on iOS but everything is working fine on Android. I'm not sure if there is any relation between the update and the error but I started to get it after the update.

this is my package.json: https://gist.github.com/janossuta/f7c56a9667e8bd3a74e29ee59d8dc087

Here is the error:

CONSOLE ERROR file:///node_modules/@angular/core/fesm5/core.js:5847:0 ERROR Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating 'this._iOSOpts.displayShadow')
Toasty@file:///node_modules/nativescript-toasty/toasty.js:25:0
file:///src/core/views/borders/border-details.component.ts:198:35
onInvoke@file:///node_modules/@angular/core/fesm5/core.js:24337:0
run@file:///node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:138:0
file:///node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:883:0
onInvokeTask@file:///node_modules/@angular/core/fesm5/core.js:24328:0
runTask@file:///node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:188:0
drainMicroTaskQueue@file:///node_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:595:0
promiseReactionJob@[native code]
UIApplicationMain@[native code]
_start@file:///node_modules/tns-core-modules/application/application.js:277:0
run@file:///node_modules/tns-core-modules/application/application.js:305:0
bootstrapNativeScriptApp@file:///node_modules/nativescript-angular/platform-common.js:205:0
bootstrapApp@file:///node_modules/nativescript-angular/platform-common.js:106:0
bootstrapModule@file:///node_modules/nativescript-angular/platform-common.js:90:0
file:///app/bundle.js:9371:144
./main.ts@file:///app/bundle.js:9376:34
__webpack_require__@file:///src/webpack/bootstrap:750:0
checkDeferredModules@file:///src/webpack/bootstrap:43:0
webpackJsonpCallback@file:///src/webpack/bootstrap:30:0
anonymous@file:///app/bundle.js:2:61<…>

and this how I try to use your plugin:

  new Toasty({text: "Some message"}).setToastDuration(ToastDuration.LONG).show();

If do you need any other info regarding this issue please let me know.

janossuta commented 5 years ago

23 same as this