Typed static property Filament\Resources\Pages\Page::$resource must not be accessed before...
I was trying to introduce a service to set up an additional field on the client profile called 'proxy_phone' and I introduced this error I cannot seem to get around. I am new to Filament and PHP. I will attach the PHP files I've modified in this process in hopes of isolating where I've introduced this error, as well as include the error and its stack trace as well.
2 Replies
To be clear I've ensured that protected static string $resource = ClientResource::class; is in all relevant files as far as I can tell.
Do you have a repo you can share? Hard to decipher from just these files. Typically though, this error is happening because something is trying to use the resource before the livewire component (Page, in this case) is ready.