pxlrbt/filament-excel ExportAction doesn't work with simple/modal (ManageRecords) resources

Hello,
I am trying to use header action of Filament Excel on a simple/modal (ManageRecords) resource (using Filament v2)
use pxlrbt\FilamentExcel\Actions\Tables\ExportAction;
use pxlrbt\FilamentExcel\Exports\ExcelExport;

            ->headerActions([
                ExportAction::make()
                    ->icon('heroicon-o-arrow-down')
                    ->exports([
                        ExcelExport::make()
                            ->fromTable()
                            ->queue()
                            ->withChunkSize(100),
                    ]),
            ]);


and i get

Method App\Filament\Resources\CompanyResource\Pages\ManageCompanies::getTable does not exist. 

when i trigger export action.

i even tried
use pxlrbt\FilamentExcel\Actions\Pages\ExportAction
page action instead of table action, still got same error.

Does anybody encountered same error before? How can i make it work?

Thanks
Was this page helpful?