Typed static property error when trying to activate cluster functionality
I'm trying to use the cluster functionality but I'm running into an error I can't get past. The cluster shows up in the main navigation but when I try to open
Users
I get the following error:
I have removed everything and started over with an empty resource (see image) with the same result. Anyone experiences this one before?
Clusters\Users.php
Clusters\Users\Resources\User.php
protected static ?string $cluster = Users::class;
2 Replies
One step closer...
The cluster navigation item is linked to
/users/users
but should be "redirected" to /users/users/users
(also works this way in the official demo). Instead of the redirection the type error is displayed for me. If I manually type in the correct URL it works.
Weird issue. All packages are up to date of course.Did you end up getting this sorted? I'm running into the same issue (where this was previously working fine)
Ok I fixed my issue by updating my
config/livewire.php
settings. Making sure render_on_redirect
is set to false
will fix the Typed static property Filament\Pages\BasePage::$view must not be accessed before initialization
issue.