triniwiz / nativescript-toasty

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

IOS: ERROR ReferenceError: Can't find variable: ToastStyle #35

Open bellalMohamed opened 4 years ago

bellalMohamed commented 4 years ago

Plugin is not working on IOS and throwing the following error:

ERROR ReferenceError: Can't find variable: ToastStyle

I did debug the issue and found out that there's a folder on the package called "typings" that is not installed with the package, which includes the file objc!Toast_Swift.d.ts that has the declaration for ToastStyle

JNicolasW commented 4 years ago

I have the same issue but, i use the same code, assets and everything in two projects, but the issue only occurs on one, not both. Any idea why? Or what should I look for?

triniwiz commented 4 years ago

Can you try the demo or nuking the project ?

bellalMohamed commented 4 years ago

Performing tns update and updating IOS version from "version": "6.2.0" to "version": "6.3.0" fixed this issue, also It fixes some similar issue with packages like nativescript-cfalert-dialog

jpw9 commented 4 years ago

I have the same issue. Anyone managed to solve it?

bellalMohamed commented 4 years ago

I have the same issue. Anyone managed to solve it?

Running tns update should fix it

maxfriedmann commented 3 years ago

Still doesn't work with ns 8.x. Just add it to a fresh app and run iOS!