Unable to find component: [app.filament.app-panel.pages.edit-tenant-profile]
I have the following edit tenant page.
When submitting the form, the following error appears:
Unable to find component: [app.filament.app-panel.pages.edit-tenant-profile]
Solution:Jump to solution
I found the reason ! (https://github.com/filamentphp/filament/issues/7377)
In my case it was a namespace problem, so I think it's the same for @proculair
If your panel name is
App
you should have namespace like
...12 Replies
@proculair @ashk Can I see what your configuration looks like in the Panel Provider?
Solution
I found the reason ! (https://github.com/filamentphp/filament/issues/7377)
In my case it was a namespace problem, so I think it's the same for @proculair
If your panel name is
App
you should have namespace like
App\Filament\AppPanel\Pages
-> App\Filament\App\Pages
AppPanelProvider.php : https://gist.github.com/lucacastelnuovo/40926f5c50b44fd55105cffb22f7c29b
app/Filament/AppPanel/Pages/Tenancy/EditTenantProfile.php : https://gist.github.com/lucacastelnuovo/36cf99a0aae0b99c5377aed729c4407b
?
Andrew asked to see the files
How did this work out?
Did you not already find the solution?
https://github.com/filamentphp/filament/issues/7892#issuecomment-1684777441
That's probably what caused it.
GitHub
Error "Unable to find component" encountered after triggering live ...
Package filament/filament Package Version v3.0.26 Laravel Version v10.19.0 Livewire Version v3.0@beta PHP Version v8.2.8 Problem description Unable to find component: [app.filament.company.pages.te...
^ Yeah probably that. Also if you are using
AppPanel
for the namespace for Pages/Resources, the panel id should need to be app-panel
.
@proculair And it seems what you currently have in the panel for the id is just app
, so change it and see if it works.If you are writing your own pages you should register them in
pages
.
I checked the source code and found that only using $panel->pages([])
registers the page component.Thanks for your help, I fixed it using discoverPages in the PanelProvider