#Filament default ENUMS missing

1 messages · Page 1 of 1 (latest)

inland pond
#

Hi all, ever since I started using Filament (I am on v3.2) I cannot seem to use any of the default ENUMS that I find in the docs.

Examples:
use Filament\Support\Enums\IconPosition;
"Undefined class 'IconPosition' "

use Filament\Support\Enums\IconSize;
"Undefined class 'IconSize'"

And so on.

Has any one of you experienced the same thing? I actually cannot find these enums in the codebase either.

Either I really don't understand or have some kind of incomplete install or so? Hope anyone can shine a light 😉

humble heronBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

stable glacier
#

Run composer update you’re probably not on the latest filament.

inland pond
#

Guess that's a rookie mistake, sorry about that. Now have the enum files, so that's great. Use statement still cannot find them, although the file is there. Is there a need to vendor publish stuff?

rapid flame
#

Not really. Your IDE/code editor cache probably needs to be updated

inland pond
#

Well, I have done cache clear even in PHPStorm and all, but still it doesn't really want to move forward. The files are there (see the directory tree), but still in the code it cannot find them. Am I just missing something obvious here?

rapid flame
inland pond
#

Updated PHPstorm and that seems to have fixed it. Still doesn't work in the project when I run it however, so will check some cache stuff for that. Really appreciate the help so far 🙂

inland pond
#

Update: all okay now. Seemed that there also were some published filament views which caused troubles now. Deleted them and all is fine. Thanks again 🙏