[URGENT] App down for hours, error only in production and not in dev environment

I am getting this error on every page besides the index page, got it since i upgraded to the new framework version, tried everything the gadget ai suggested nothing works. Whats worse is that i only get this error in prod and not in dev so i have to deploy continuously to check:
Unexpected Application Error!
You are attempting to use the useGlobalAction hook, but you are not calling it from a component that is wrapped in a Gadget <Provider/> component. Please ensure you are wrapping this hook with the <Provider/> component from either @gadgetinc/react or @gadgetinc/preact.
Error: You are attempting to use the useGlobalAction hook, but you are not calling it from a component that is wrapped in a Gadget <Provider/> component. Please ensure you are wrapping this hook with the <Provider/> component from either @gadgetinc/react or @gadgetinc/preact.
at https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:29:11687
at t1 (https://whatflow.gadget.app/api/assets/171810/344244/assets/home-C2_MpjwG.js:2:37526)
at Fd (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:48099)
at sf (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:70902)
at t0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:81025)
at _0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:117008)
at iS (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:116054)
at Rf (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:115886)
at T0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:112680)
at V0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:124479)
Unexpected Application Error!
You are attempting to use the useGlobalAction hook, but you are not calling it from a component that is wrapped in a Gadget <Provider/> component. Please ensure you are wrapping this hook with the <Provider/> component from either @gadgetinc/react or @gadgetinc/preact.
Error: You are attempting to use the useGlobalAction hook, but you are not calling it from a component that is wrapped in a Gadget <Provider/> component. Please ensure you are wrapping this hook with the <Provider/> component from either @gadgetinc/react or @gadgetinc/preact.
at https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:29:11687
at t1 (https://whatflow.gadget.app/api/assets/171810/344244/assets/home-C2_MpjwG.js:2:37526)
at Fd (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:48099)
at sf (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:70902)
at t0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:81025)
at _0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:117008)
at iS (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:116054)
at Rf (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:115886)
at T0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:112680)
at V0 (https://whatflow.gadget.app/api/assets/171810/344244/assets/index-yp1eBuGv.js:10:124479)
3 Replies
Chocci_Milk
Chocci_Milk4w ago
Hello, Could you please share the URL of your Gadget app?
airhorns
airhorns4w ago
DM'd safwan and sorted this out -- it was a bug in @Gadgetinc/react
safwan
safwanOP4w ago
thank you so much Harry came in clutch🙏🙏🙏 what still beats me is that this error only came in prod and not in dev

Did you find this page helpful?