Sweetalert: Uncaught ReferenceError: logStr is not defined

Created on 3 Dec 2015  路  9Comments  路  Source: t4t5/sweetalert

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!

Most helpful comment

yep, I was using danger instead of error.

All 9 comments

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

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() { /// } );

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ramysa picture ramysa  路  10Comments

daybaryour picture daybaryour  路  13Comments

kentmw picture kentmw  路  15Comments

inctor picture inctor  路  12Comments

softsaravanacse picture softsaravanacse  路  13Comments