I get this on my built and deployed app running in a containerised environment:
hook.js:608 TypeError: Cannot read properties of null (reading 'useContext')
at react.production.min.js:24:495
at s (VersionedContext.esm.js:12:10)
at x (useApp.esm.js:4:28)
at Y (extensions.esm.js:82:21)
at Ci (react-dom.production.min.js:167:137)
at ta (react-dom.production.min.js:290:337)
at qs (react-dom.production.min.js:280:389)
at Jc (react-dom.production.min.js:280:320)
at Hr (react-dom.production.min.js:280:180)
at Yi (react-dom.production.min.js:271:88)
This error doesn't happen locally - it works fine while running within yarn dev. How do I even begin to debug it?
It essentially happens when view a page that is coming from a custom plugin I'm developing. It occurs immediately after loading the plugin tab of the service. No data has been loaded from the backend at this point.