Closed jigar-dhulla closed 5 months ago
I can confirm this PR fixes the particular issue.
@jantinnerezo can you please check this out and merge?
@jantinnerezo Can you do a new release as well with this PR to get via composer?
Update the composer.json
with "jantinnerezo/livewire-alert": "dev-master"
insteard of "jantinnerezo/livewire-alert": "^3.0"
then run composer update
to fix the issue until this PR been released.
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>
fixes that.