And where is this approach in the documentation? Because the error is related to Livewire which Filament uses, but I am not sure where did you find this way to add a theme to a panel. Why don't you follow the documentation: https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme ?
Nov 5, 2024
3
Level 1
Issue Adding a New Theme: Typed property Filament\Support\Assets\Asset::$package must not be accessed before initialization
public function panel(Panel $panel): Panel
{
return $panel
....
->theme('resources/css/filament/app/theme.css')
...
}
I'm trying to add a new theme to my app, but I keep getting the following error:
Please or to participate in this conversation.