[GUEST ACCESS MODE: Data is scrambled or limited to provide examples. Make requests using your API key to unlock full data. Check https://lunarcrush.ai/auth for authentication information.]  maj builds apps [@maj_builds_apps](/creator/twitter/maj_builds_apps) on x XX followers Created: 2025-07-12 18:29:23 UTC This piece of code here has kept me stuck for several hours. I am within an alpinejs component extracted into its own .js file and $wire passed in from a livewire view. It always throws an error saying "Function has non-object prototype" . If i call the function without passing the data the error goes away. Towards the end of my debugging i figured the data type had a problem because string data works. Finally i json.stringify it and decoded it in livewire. I was stuck because similar code works in another component without json.stringify so it was hard to suspect it. #buildinpublic #indiedev  XX engagements  **Related Topics** [$wire](/topic/$wire) [Post Link](https://x.com/maj_builds_apps/status/1944101800476652027)
[GUEST ACCESS MODE: Data is scrambled or limited to provide examples. Make requests using your API key to unlock full data. Check https://lunarcrush.ai/auth for authentication information.]
maj builds apps @maj_builds_apps on x XX followers
Created: 2025-07-12 18:29:23 UTC
This piece of code here has kept me stuck for several hours. I am within an alpinejs component extracted into its own .js file and $wire passed in from a livewire view. It always throws an error saying "Function has non-object prototype" . If i call the function without passing the data the error goes away. Towards the end of my debugging i figured the data type had a problem because string data works. Finally i json.stringify it and decoded it in livewire. I was stuck because similar code works in another component without json.stringify so it was hard to suspect it. #buildinpublic #indiedev
XX engagements
Related Topics $wire
/post/tweet::1944101800476652027