Unable to find component: [Filament\Widgets\WidgetConfiguration]

I have built a CustomView and am trying to include a view within my blade.php as it says in the docs. There I get this error... In my Ressource File i added:
public static function getWidgets(): array
{
return [
ServerLineChart::class,
ServerStats::class
];
}
public static function getWidgets(): array
{
return [
ServerLineChart::class,
ServerStats::class
];
}
tryed to use that Widget in my View blade.php File:
<div> @livewire(\App\Filament\Dashboard\Resources\RootServerResource\Widgets\ServerLineChart::make([
"record" => $this->record,
"title" => "CPU",
]))
</div>
<div> @livewire(\App\Filament\Dashboard\Resources\RootServerResource\Widgets\ServerLineChart::make([
"record" => $this->record,
"title" => "CPU",
]))
</div>
https://filamentphp.com/docs/3.x/widgets/adding-a-widget-to-a-blade-view
No description
1 Reply
awcodes
awcodes7mo ago
Seems like the widget is not in the auto discovery path for the panel. If that’s the cases you need to explicitly tell livewire to register it as a component in a service provider.
Want results from more Discord servers?
Add your server