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

Uncaught ReferenceError: logStr is not defined #487

Closed
gabyrusu opened this issue Dec 3, 2015 · 9 comments
Closed

Uncaught ReferenceError: logStr is not defined #487

gabyrusu opened this issue Dec 3, 2015 · 9 comments

Comments

@gabyrusu
Copy link

gabyrusu commented Dec 3, 2015

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!

@maddy2308
Copy link

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

@yoshiokatsuneo
Copy link

Maybe same as https://gist.github.com/ajitbohra/e0bb2f430894e62eaff4 ?

@gabyrusu
Copy link
Author

yep, I was using danger instead of error.

@jacobsvante
Copy link

Though it does seem that logStr is not imported in set-params. AFAIK this is not a global function.

@eddyhoole
Copy link

I have had the same issue , used danger instead of error as type.

@tqwewe
Copy link

tqwewe commented Feb 22, 2017

This should be fixed.

@rcabral827
Copy link

i have the same error, sucess, but right is success.. Now is working

@t4t5
Copy link
Owner

t4t5 commented Sep 8, 2017

logStr has been removed in 2.0 so this should no longer be an issue.

@t4t5 t4t5 closed this as completed Sep 8, 2017
@kuez
Copy link

kuez commented Jun 9, 2018

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

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

9 participants