© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Greg

Widget error - unable to find component

I used the command line to create a stats-overview widget, Enrollment. I did not create it tied to any resource and it's for the admin panel, the only panel I have. As expected, app/Filament/Widgets/Enrollment.php was created. I manually changed the file and class name to EnrollmentWidget (to avoid a name conflict with the Model), changed the getHeadersWidgets function in the Dashboard page, and emptied out the auto-discover and widget arrays in the config file. But when I load the Dashboard, I get an error: Unable to find component: [app.filament.widgets.enrollment-widget]

Is this expecting a view I have not provided? Is it connected to the originally-named widget?
Solution
Or register it with the panel through ->widgets()
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ComponentNotFoundException: Unable to find component (PHPUnit)
FilamentFFilament / ❓┊help
2y ago
Unable to find component
FilamentFFilament / ❓┊help
2y ago
Unable to find component
FilamentFFilament / ❓┊help
2y ago
Unable to find component : [notifications]
FilamentFFilament / ❓┊help
2y ago