© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
11 replies
Connor

Unable to find component

I have a package where I am attempting to implement a custom page in filament

<?php

namespace CNRP\InstagramFeed\Filament\Pages;

use Filament\Pages\Page;
use Filament\Forms\Form;
use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Support\Facades\Log;

class InstagramManager extends Page 
{

    protected static ?string $navigationIcon = 'heroicon-o-camera';
    protected static ?string $navigationLabel = 'Instagram Feed';
    protected static ?string $title = 'Manage Instagram Feed';
    protected static ?string $slug = 'instagram-feed';
    protected static string $view = 'instagram-feed::filament.pages.manage-instagram-feed';

    public function mount(): void
    {
    }

    protected function getHeaderActions(): array
    {
        return [
            Action::make('refreshFeed')
                ->label('Refresh Feed')
                ->action('refreshFeed'),
        ];
    }

    public function refreshFeed(): void 
    {
      // do something here
    }

}
<?php

namespace CNRP\InstagramFeed\Filament\Pages;

use Filament\Pages\Page;
use Filament\Forms\Form;
use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Support\Facades\Log;

class InstagramManager extends Page 
{

    protected static ?string $navigationIcon = 'heroicon-o-camera';
    protected static ?string $navigationLabel = 'Instagram Feed';
    protected static ?string $title = 'Manage Instagram Feed';
    protected static ?string $slug = 'instagram-feed';
    protected static string $view = 'instagram-feed::filament.pages.manage-instagram-feed';

    public function mount(): void
    {
    }

    protected function getHeaderActions(): array
    {
        return [
            Action::make('refreshFeed')
                ->label('Refresh Feed')
                ->action('refreshFeed'),
        ];
    }

    public function refreshFeed(): void 
    {
      // do something here
    }

}


The page loads correctly, I see the button for refreshing feed, however clicking it gives me the error

Unable to find component: [c-n-r-p.instagram-feed.filament.pages.instagram-manager]
Unable to find component: [c-n-r-p.instagram-feed.filament.pages.instagram-manager]


I have the page registered in the boot of my package.
        Filament::registerPages([
            InstagramManager::class,
        ]);
        Filament::registerPages([
            InstagramManager::class,
        ]);


I cannot get any buttons/ actions to work, maybe due to how I'm adding the page as part of a package?
Not sure where to go from here so any help would be appreciated.
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 : [notifications]
FilamentFFilament / ❓┊help
2y ago
Livewire\Exceptions\ComponentNotFoundException: Unable to find component: [filament.pages.auth.regis
FilamentFFilament / ❓┊help
17mo ago