© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Baspa

Unable to find component when clicking on an action

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));
            });
    }

    // ...
}
// ...
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.
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

Got error "Unable to find component" when click an action in relation page
FilamentFFilament / ❓┊help
15mo 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