-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error #2
Comments
Hello @b-mi |
Hello @juan-manuel-alberro i also get an error like this, is it was resolved ? or still not yet ? |
+1. Not working at all |
You need to manually include sweetalert2 for this to work. |
@jeffreypolk - how exactly include sweetalert2 'manually '? I use instructions for install from author - but it not work. Did you try your solution on angular 4? |
Yes using Angular4. Not sure if it's the "right" way, but I just included sweetalert2 CDN js and css references in my index.html |
I have the same problem like b-mi, and I think the problem come from webpack compile. |
@b-mi I found that 'manual installation' means installing and adding SweetAlert2 in First Install SweetAlert2 vía npm In your
Now run ###Note |
Installed angular wrapper, I use angular 4, and got this error:
ERROR TypeError: myWindow.Sweetalert2 is not a function
at SweetAlertService.webpackJsonp.../../../../angular-sweetalert-service/js/service/sweetalert2.service.js.SweetAlertService.confirm (sweetalert2.service.js:25)
In component code I used
Then, command from your page end with error:
The text was updated successfully, but these errors were encountered: