Filament default ENUMS missing
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 π
Solution:Jump to solution
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 π
7 Replies
Run
composer update
youβre probably not on the latest filament.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?
Not really. Your IDE/code editor cache probably needs to be updated
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?
I'd try the "File > Repair IDE" command from PhpStorm.
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 π
Solution
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 π