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]
<?php

namespace App\Filament\AppPanel\Pages;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile as BaseEditTenantProfile;

class EditTenantProfile extends BaseEditTenantProfile
{
public static function getLabel(): string
{
return __('Tenant profiel');
}

public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name')
->label(__('Naam'))
->required()
->unique(ignoreRecord: true),
TextInput::make('avatar_url')
->label(__('Logo URL'))
->required()
->url(),
]);
}
}
<?php

namespace App\Filament\AppPanel\Pages;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile as BaseEditTenantProfile;

class EditTenantProfile extends BaseEditTenantProfile
{
public static function getLabel(): string
{
return __('Tenant profiel');
}

public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name')
->label(__('Naam'))
->required()
->unique(ignoreRecord: true),
TextInput::make('avatar_url')
->label(__('Logo URL'))
->required()
->url(),
]);
}
}
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 ...
Jump to solution
12 Replies
Ashk
Ashk16mo ago
I've the same problem with RegisterTenant
Andrew Wallo
Andrew Wallo16mo ago
@proculair @ashk Can I see what your configuration looks like in the Panel Provider?
Solution
Ashk
Ashk16mo ago
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
Proculair B.V.
Proculair B.V.OP16mo ago
Gist
AppPanelProvider.php
GitHub Gist: instantly share code, notes, and snippets.
Gist
EditTenantProfile.php
GitHub Gist: instantly share code, notes, and snippets.
Ashk
Ashk16mo ago
?
Proculair B.V.
Proculair B.V.OP16mo ago
Andrew asked to see the files
青木
青木16mo ago
How did this work out?
Andrew Wallo
Andrew Wallo16mo ago
Did you not already find the solution?
青木
青木16mo ago
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...
Andrew Wallo
Andrew Wallo16mo ago
^ 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.
青木
青木16mo ago
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.
Proculair B.V.
Proculair B.V.OP16mo ago
Thanks for your help, I fixed it using discoverPages in the PanelProvider
Want results from more Discord servers?
Add your server