F
Filament3mo 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
1 Reply
Matte
Matte3mo 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.