Using @filamentScripts instead of @livewireScripts doesnt work on 404
In my app.blade.php layout file i have
@filamentScripts
because i use some livewire components with form through my app. This all works fine.
I can use alpine anywhere, works fine. Except, on my custom 404 page.
my custom 404 page uses the same layout file, but alpine doesnt work on this page.
When i switch @FilamentScripts to @livewireScripts, it does work! But that brings new issues on the pages with filament components.
Anyone encountered this before and know how to fix?2 Replies
That's because filament doesn't run on 404's, error pages are as stripped down as possible for a good reason since it could be many parts of filament causing the issue
Solved it by adding @livewireScripts to the 404.blade.php