Dark | Light
[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 Avatar](https://lunarcrush.com/gi/w:24/cr:twitter::1931717699102806016.png) 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

![](https://pbs.twimg.com/media/GvrUrFXW0AAmAwC.png)

XX engagements

![Engagements Line Chart](https://lunarcrush.com/gi/w:600/p:tweet::1944101800476652027/c:line.svg)

**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 Avatar 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

Engagements Line Chart

Related Topics $wire

Post Link

post/tweet::1944101800476652027
/post/tweet::1944101800476652027