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
Andrew Wallo
Andrew Wallo12mo ago
What is your composer version for Filament?
marklar67
marklar67OP12mo ago
thanks Andrew, Composer version is 2.6.5
DrByte
DrByte12mo ago
I think he meant what version of Filament is Composer reporting. Run php artisan about and post the Filament and Livewire sections.
marklar67
marklar67OP12mo ago
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
Andrew Wallo
Andrew Wallo12mo ago
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.
Want results from more Discord servers?
Add your server