Skip to content
Advertisement

Laravel Livewire: Cannot read property ‘$wire’ of undefined

I have a problem with laravel livewire. I think the problem is really simple, but I can not solve it. Let me explain everything. I have a daterangepicker (LitePicker), he works perfect, but I want when user select date range value to set this value to the property and filter data. My problem is that I can’t set value to the property. my Js Code:

JavaScript

@this directive is compiled to

JavaScript

I think the problem is here, because parameter which is passed to find function is empty or the id of the component is missing, and I don’t know how to fix it. Now here is the the error I received when date is selected:

JavaScript

As you can see I use push directive so here is the code where I load the scripts

JavaScript

Also I tried with events wire:model and wire:change without success.

Advertisement

Answer

I used like this

JavaScript

than in livewire

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement