Changing default theme mode doesn't work?
Sorry if this is a noob question, I started playing with Filament and everything works nicely so far apart from changing the default theme mode. I tried to change it to Dark as a default but I get errors saying use Filament\Enums\ThemeMode; doesn't exist.
Any ideas what I am doing wrong? It is probably something basic I have missed but couldn't figure it out from the docs.
Many thanks
https://flareapp.io/share/87n9Yq6P
Flare
Class "Filament\Enums\ThemeMode" not found - The error occurred at http://localhost:8080/backoffice
5 Replies
What is your composer version for Filament?
thanks Andrew, Composer version is 2.6.5
I think he meant what version of Filament is Composer reporting.
Run
php artisan about
and post the Filament and Livewire sections.I see, thanks, please find below
Filament .........................................................................................................................................
Packages ......................................................................................... filament, forms, notifications, support, tables
Version ................................................................................................................................... v3.1.0
Views .............................................................................................................................. NOT PUBLISHED
Livewire .........................................................................................................................................
Livewire .................................................................................................................................. v3.3.3
Maybe try updating by running
composer update
... I'm not sure which Filament version has the ThemeMode
setting.
And make sure you have "minimum-stability": "stable",
set inside your composer.json
file.