Need Help with computed Views

I am using computed views for few models Now when i tried to add a new computed view for a seperate model it's not working I used the same way i did for other computed views which are working fine but the new one doesnt work. Project Name - videoselz env- DEVELOPMENT Files - rsVideo(Model) -> views -> internalVideoTotalCount7days.gelly
14 Replies
ljspoor94
ljspoor943mo ago
Not working how? Is there any errors in the problems tab?
Alexx
AlexxOP3mo ago
No! it just throws internalVideoTotalCount7days is not a function whereas for older computed views i used similar approach and they are still working!
Chocci_Milk
Chocci_Milk3mo ago
That means that something is stopping your api from regenerating.
ljspoor94
ljspoor943mo ago
Not sure if maybe similar to this, I didn't get any errors shown but there was a problem with gelly https://discord.com/channels/836317518595096598/1363795347910168656/1375435273915338825 @[Gadget] Martin was looking into this I believe. May be linked
Alexx
AlexxOP3mo ago
videoselz.gadget.app enviroment is development Please let me know!!
[Gadget] Martin
[Gadget] Martin3mo ago
It looks like your client is fully failing to generate. Your API playground won't even start. It is quite possibly the issue that @ljspoor94 pointed out above, we haven't solved it yet. In the meantime, you could try to undo the last changes, to get your api client regenerating again. The view you pointed out looks very simple, I don't think that's what's causing the breakage. If you can point out which specific bit broke your client, that could be very helpful for us to diagnose and fix the issue.
Alexx
AlexxOP3mo ago
I just added 3-4 computed views maybe in few minutes thats all
ljspoor94
ljspoor943mo ago
Try removing them one by one and seeing which is causing the failed regen Then said whichever file that is with Martin so he can try investigate
[Gadget] Martin
[Gadget] Martin3mo ago
Known issues with client generation have been fixed, please try again and let us know if you still have issues with these views.
Mark Dev
Mark Dev4w ago
I'm having the same issue. I can't get any computed view to work with the client. I tried simple global computed view and model namespaced computed view. I'm using the latest gadget packages.
Chocci_Milk
Chocci_Milk4w ago
What Gadget framework version is your application on?
Mark Dev
Mark Dev4w ago
"@gadgetinc/react": "^0.21.4", "@gadgetinc/react-shopify-app-bridge": "^0.18.8",
Chocci_Milk
Chocci_Milk4w ago
Those are Gadget packages. The framework is i. The environment settings
Mark Dev
Mark Dev4w ago
Ah I never saw that before. That is the reason, I'm on 1.3

Did you find this page helpful?