Filament V3 and Livewire V3 scripts
After a followed the upgrade guide for livewire i moved to the upgrade guide of filament.
The Livewire guide told me that i can use the app.js like:
Then all i need to do in the base layout is to replace the
@livewireScripts
with @livewireScriptConfig
Then in the filament upgrade guide they say
The styles i have replaced the and removed from app.css
but the JS scripts are a little different..... since they say that i don't need the imports
from the app.js
and they are loaded in the @filamentScripts
Now i am puzzeled since witch to use since adding both ( @filamentScripts
and @@livewireScriptConfig
) at the end of the layout results into multiple alpine livewire starts warnings and errors.
So i removed almost everything related to livewire and alpine from the the app.js
and replaced the new @livewireScriptConfig
with @filamentScripts
Is this how it should be ?
Won't i be missing some scripts that Livewire uses or everything will be loaded by the @filamentScripts
?
What if i want to add a Alpine plugin how should i do that ?3 Replies
FWIW, I have both of those
and it seems to work fine. I'm using the latest versions for everything.
i was also (in the beginning) but that results in multiple warnings in the console and resulting in Alpine syntax not rendering correctly
Did you ever solve this? Im running in to the same issue