Cannot read property 'constructor' of undefined at SweetAlert code example Example: sweetalert Cannot read property 'constructor' of undefined Try doing swal.fire() worked for me