Getting error on custom list view..$resource must not be accessed before initialization

I am getting this on a custom list page nothing on it yet just the table.
Typed static property Filament\Resources\Pages\Page::$resource must not be accessed before initialization
Typed static property Filament\Resources\Pages\Page::$resource must not be accessed before initialization
this is my StatusResource.php https://gist.github.com/craigvc/f4f03a8287e587e45e634b288f5ba7e3 and this is my view file https://gist.github.com/craigvc/d6b52f6a58df776b0449c869260a1807 and the liststatuses file https://gist.github.com/craigvc/ba9a96c2de1e2fbe24ebc044b20326a5 Does any one have any ideas where i am going wrong? (I wanted to add some text above the table so i then switched to custom page view and this error started?
Gist
StatusResource.php
GitHub Gist: instantly share code, notes, and snippets.
Gist
list-statuses.blade.php
GitHub Gist: instantly share code, notes, and snippets.
Gist
ListStatuses.php
GitHub Gist: instantly share code, notes, and snippets.
1 Reply
nostrodamned
nostrodamned10mo ago
and it was because i was dumb!! forgot protected static string $resource = StatusResource::class;