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