F
Filament9mo ago
Matte

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:
Typed static property Filament\Pages\BasePage::$view must not be accessed before initialization
Typed static property Filament\Pages\BasePage::$view must not be accessed before initialization
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
<?php

namespace App\Filament\Clusters;

use Filament\Clusters\Cluster;

class Users extends Cluster
{
protected static ?string $navigationIcon = 'fad-users';

protected static ?int $navigationSort = 0;
}
<?php

namespace App\Filament\Clusters;

use Filament\Clusters\Cluster;

class Users extends Cluster
{
protected static ?string $navigationIcon = 'fad-users';

protected static ?int $navigationSort = 0;
}
Clusters\Users\Resources\User.php protected static ?string $cluster = Users::class;
No description
2 Replies
Matte
MatteOP9mo ago
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.
Kane G
Kane G6mo ago
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.
Want results from more Discord servers?
Add your server