Hey, guys! I'm using sweetalert 1.1.3 installed with npm and i keep getting this error:
"Uncaught ReferenceError: logStr is not defined." in sweetalert-dev.js:1035
What could be the problem? Any ideas?
Thanks!
I did the same thing as mentioned by you and I am myself receiving the same errors. Don't know whats going wrong.
[edit] I found my issue, and it was that i was passing in wrong value of the alert type. I was suppose to pass "success" and I passed in "Success". I don't know why the coder of this piece didnt to ignore case kind of thing. You may wanna check that out
Maybe same as https://gist.github.com/ajitbohra/e0bb2f430894e62eaff4 ?
yep, I was using danger instead of error.
Though it does seem that logStr is not imported in set-params. AFAIK this is not a global function.
I have had the same issue , used danger instead of error as type.
This should be fixed.
i have the same error, sucess, but right is success.. Now is working
logStr has been removed in 2.0 so this should no longer be an issue.
SweetAlert.swal(
{
title: "Process complete",
text: "Your data will be confirmed, at a time a representative will contact you.",
type: "Success", /** ----->> Check the first letter, all must be lower case **/
///
},
function() {
///
}
);
Most helpful comment
yep, I was using danger instead of error.