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

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

Open
bellalMohamed opened this issue Jan 16, 2020 · 6 comments
Open

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

bellalMohamed opened this issue Jan 16, 2020 · 6 comments

Comments

@bellalMohamed
Copy link

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
Copy link

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
Copy link
Owner

Can you try the demo or nuking the project ?

@bellalMohamed
Copy link
Author

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
Copy link

jpw9 commented Jul 26, 2020

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

@bellalMohamed
Copy link
Author

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

Running tns update should fix it

@maxfriedmann
Copy link

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

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

5 participants