I have a custom action in a custom Filament page:
// ...
use Filament\Actions\Action;
// ...
class LoginTwoFactor extends Page implements HasForms, HasActions
{
use InteractsWithForms;
use InteractsWithFormActions;
protected static string $layout = 'filament.layouts.login';
public function mount(): void
{
$this->form->fill();
}
public function resendAction(): Action
{
return Action::make('resend')
->label('Opnieuw versturen')
->color('info')
->action(function ($data) {
auth()->user->notify(app(SendOTP::class));
});
}
// ...
}
When I click on the action button it gives me the following error:
Unable to find component: [app.filament.pages.auth.login-two-factor]
To me it's totally unclear where this message comes from. I never reference the mentioned view? Can someone explain to me what's actually happening? If you need more code or information I will provide it.