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

Unhandled promise rejection Message must be a string #6

Closed
SalemCode8 opened this issue May 27, 2018 · 3 comments
Closed

Unhandled promise rejection Message must be a string #6

SalemCode8 opened this issue May 27, 2018 · 3 comments
Labels

Comments

@SalemCode8
Copy link

SalemCode8 commented May 27, 2018

When i run this code

this.$toast.show({
    position: 'topRight',
    color: 'green',
    icon: 'fas fa-check',
    message: 'Sidebar Added Successfully'
});

the toastr didn't appear and it gives me this error

Unhandled promise rejection Message must be a string

@karthiknk
Copy link

@SalemCode8 is this issue resolved? i get that same error now

@dipu-bd
Copy link

dipu-bd commented May 8, 2019

I am facing this error too

@arthurvasconcelos
Copy link
Owner

Hi @SalemCode8, @karthiknk and @dipu-bd I was reviewing this issue and the problem is because you are calling show with wrong function signature.

The show method in vue-izitoast is called like this: show(message, title = '', options = {}).

Reference here: v1.1.2 and v1.2.0.

But this show me that I need to improve on the error message. This better error message will be released in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants