ComponentNotFoundException on Tenant Registration
I am getting an error when I register a new tenant.
I'm not sure how the multiple panels should work together, but I have a widget on my default panel that provides a link to another panel's
tenant
route.
This lands the user on the panel's tenant registration page when they have no tenants.
The form can be filled out, but when submitting, an error occurs. It's a Livewire ComponentNotFoundException...where it can't find app.filament.pages.tenancy.register-organization
. (My panel's tenant registration form class is App\Filament\Pages\Tenancy\RegisterOrganization::class
.)
It appears that this happens before the handleRegistration()
method is called.
Any input, advice, answers...or whatever...? 🤔
Thanks in advance. 🤓13 Replies
I have the same problem 😦
Well, I'm not happy for you, @lucasvieira96 , but I am happy that I'm no longer alone. 😅
@lucasvieira96 Any luck on this one...?
I am sort of stuck and not sure how to get more eyeballs on this problem.
It seems like more than two people would be trying this and suffering from the same problem. 🤔
I ended up not messing with it anymore, because the error occurred in a sandbox project that I made to test v3, I went back to the development of another project that is still in v2 😦
but investigating I ended up seeing that there were more people with this problem and there was an open issue for this, but I ended up not following how it is at the moment
I believe that for the moment it is waiting 😕
I'm thinking of starting new projects in v3 only in september or october because of the bugs and mainly because Livewire is still in beta version
Thx for your response. I will take a look at the issues on github and try to find and follow it. 🤓
move your page to
App/Filament/YourPanelName/Page/tenancy/
can you post RegisterOrganization class?
also your panel from panel provider ?
@travis.elkins @lucasvieira96 because it works very well with me
Sorry...not sure what you mean by this.
Move which page...? The RegisterOrganization page...?
Also, can you be clearer with the path and maybe say why it needs to be moved there...? Is it Page or Pages? Is it tenancy or Tenancy? If the panel provider class is WidgetsPanelProvider, then should the path be App/Filament/WidgetsPanelProvider/Page/tenancy or App/Filament/Widgets/Page/tenancy...?
Here's my
RegisterOrganization
class:
And here's the EmployersPanelProvider
...just the top part as the rest is default/auto-generated:
Can you share any of your code...? And/or point to anything online that helps (besides the docs)...?
I feel like I've been through the docs several times and have not missed anything....but who knows...? 😅I solved this problem here
I had created my tenancy registration and edit pages in the following sequence: App\Filament\Pages\Tenancy\CLASS_NAME_HERE, but if you notice the Provider of the Panel has a configuration that applies to the mapping of pages:
After I restructured the folders it worked
now my tenancy page files were in the same structure as the discoveryPages directive
Thx. I have been relying on the docs...and while I may have missed something, I never even took the time to look at the rest of the panel configuration. 🫢
I'll take a close look now and make the necessary adjustments.
Thx again for replying and sharing your findings. 🤓
🚀
When you create the custom register page via console, make sure to select the right panel, it should work 🙂