Upgrade v3 - Livewire and Alpine not loading
I just upgraded to v3. The admin panel seems to load but the screen is blank. If I inspect, everything seems to be there. One of the wrapping divs for the entire page is set to opacity-0 with the x-bind:style set to give it opacity. This is what gave me the clue that Livewire and Alpine are not being loaded. Also, my Livewire and Alpine dev tools both say that nothing is detected.
Any ideas on why Livewire and Alpine wouldn't be loading for my admin panel?
I also tried creating a second admin panel (/admin2) and it does the same thing.
I have gone over the upgrade steps multiple times. The assets are being copied to my public folder and loaded according to the network tab.
Any ideas on what might be going on here?
3 Replies
Did you upgrade to Livewire v3 and did you follow the migration docs to vite etc?
yes, Livewire was upgraded to v3 as well. What migration docs for vite are you talking about? Maybe I missed that but I don't see it in the upgrade guide. I'm not using individual filament packages such as tables or forms inside my main app. I'm just using the admin panel separately.
If I'm just using the admin panel and not putting filament components into my main app, I shouldn't need to compile assets, right?
Run
php artisan filament:assets