Alpine.data with initial parameters doesn't work when registered from a bundle #1956
-
I am try to create a component via a registered Alpine.data object called "searchSelect" and pass it two initial parameters, but doing so throws the following error:
I registered it like this:
The search-select.js file looks like this:
and finally am calling it my html like so:
If I remove the parameters and just call it like this For reference, I am on alpinejs v3.0.6 and am using alpinejs within a Laravel Livewire project. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
What if you try 3.2.3? |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem on 3.14.3, as soon as i add paramters i get |
Beta Was this translation helpful? Give feedback.
What if you try 3.2.3?