Closed bucari closed 1 year ago
I installed livewire-alert publishing livewire-alert.js and added
to app.blade.php after @livewireScripts but i get this error Uncaught (in promise) ReferenceError: Swal is not defined
I had the same issue npm install sweetalert2
npm install sweetalert2
In app.js include it:
import swal from 'sweetalert2'; window.Swal = swal;
@zsoltjanes not working with flash() method when redirecting
I installed livewire-alert publishing livewire-alert.js and added
to app.blade.php after @livewireScripts but i get this error Uncaught (in promise) ReferenceError: Swal is not defined