As Swal is external dependency, when Swal is loaded via vite bundler, it is deferred. Hence when using flash feature, we get error Uncaught (in promise) ReferenceError: Swal is not defined. This is because <script> inside flash is not deferred, adding type="module" to the <script> should fix that.
As Swal is external dependency, when Swal is loaded via vite bundler, it is deferred. Hence when using flash feature, we get error
Uncaught (in promise) ReferenceError: Swal is not defined
. This is because<script>
inside flash is not deferred, addingtype="module"
to the<script>
should fix that.PR for same: https://github.com/jantinnerezo/livewire-alert/pull/137