Sweealert2 : Unknown parameter icon
The new major version (v9) was released a couple of days ago, please update your sweetalert2
dependency:
package.json
:
"sweetalert2": "^9.0.0",
Or, if you're using CDN:
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
Read the release notes to see all breaking changes: https://github.com/sweetalert2/sweetalert2/releases/tag/v9.0.0
try switch "icon", for "type", like this:
Swal.fire({
type: 'info',
title: hasil.message,
showConfirmButton: false,
timer: 1500
});
I just had the same problem and found this solution!