wire:click result in an exception
Hi, I have a problem with a custom livewire component.
My button:
And this function in my class:
Result in this:
Alpine Expression Error: undefined
Expression: "$wire.nextReportStep"
Uncaught String {'Could not find Livewire component in DOM tree', el: button.bttn-2, expression: '$wire.nextReportStep'}
16 Replies
bump?
what class is it registered on
double check its actually a livewire component and not a form component etc
On my page I include the component:
My class:
Component template:
very odd
dont think its related to filament
what is the Component class you're extending
I just use Filament 😄
you're using livewire.
Yes with Filament
but this is nothing to do with filament, its a livewire component
Without Filament it works
i dont know how that would be the case
Its very strange
it looks like you're doing everything right so if you create a reproduction repo and post it here i will have a look
if i cant find the problem at first glance then i will ask you to open an issue
Okay, I will do it 🙂
and please create a fresh project to reproduce with a new component, dont copy your old one
Okay, no problem
Not sure whether that helps, but try giving your component a key