wleistra
Cannot read __untypedClient from undefined error when try to update to latest 11.rc### versions
i checked my monorepo. We use Yarn v4 btw, and there is only 1 node_modules folder in the whole repo and i did a search on "@trpc/react-query", "@trpc/client", and "@trpc/server". and all three have the same value
11.0.0-alpha-tmp-issues-6374.697
56 replies
Cannot read __untypedClient from undefined error when try to update to latest 11.rc### versions
It could be undefined because it throws an uncaught exception and the error boundary is higher up so it unmounts it, causing it to be undefined... I guess I just have no idea how to check what is interesting for you.
56 replies
Cannot read __untypedClient from undefined error when try to update to latest 11.rc### versions
it is currently my understanding that when watching the trpc exported from trpc.ts file it seems be undefined... But i do agree it is suspicious because you need to call the trpc.createClient() and it doesn't yell there =/
56 replies
Cannot read __untypedClient from undefined error when try to update to latest 11.rc### versions
I guess my debug skills are not great, but for all i can see the createTRPCReact inner workings seem all broken when watching variables most of it is undefined. But then again, this is my first time trying to debug this deep 🙂
56 replies
Cannot read __untypedClient from undefined error when try to update to latest 11.rc### versions
When trying to debug into the createTRPCReact function the hooks seem to be created (at least nothing suspicious there AFAIK) but proxx is resolved to
56 replies