Creating a widget returns an error.

I have a widget on my panel and it was working fine. I have bumped composer dependencies, run the upgrade command and cleared views, but I now get an error;
Unable to find component: [app.filament.widgets.stats-overview]
Unable to find component: [app.filament.widgets.stats-overview]
If I follow the stats overview documentation to create a new widget and add it to my dashboard, I get the same error.
Solution:
I was using getHeaderWidgets in the dashboard page. I have removed this and setup the widgets in the Panel configuration now and they work correctly.
Jump to solution
5 Replies
LeandroFerreira
LeandroFerreira2mo ago
php artisan about --only=Filament What is the output?
trovster
trovsterOP2mo ago
Filament .........................................................................................................................................
Packages ......................................................................................... filament, forms, notifications, support, tables
Version ................................................................................................................................. v3.2.115
Views .............................................................................................................................. NOT PUBLISHED
Filament .........................................................................................................................................
Packages ......................................................................................... filament, forms, notifications, support, tables
Version ................................................................................................................................. v3.2.115
Views .............................................................................................................................. NOT PUBLISHED
LeandroFerreira
LeandroFerreira2mo ago
Are you caching components ? You can clear the cache at any time without rebuilding it by running php artisan filament:clear-cached-components
trovster
trovsterOP2mo ago
Cleared. Same error.
Solution
trovster
trovster2mo ago
I was using getHeaderWidgets in the dashboard page. I have removed this and setup the widgets in the Panel configuration now and they work correctly.
Want results from more Discord servers?
Add your server