TanStackT
TanStack2mo ago
7 replies
faint-white

Uncaught (in promise) Error: Cannot read properties of undefined (reading 'body')

Is anyone else seeing this error when trying to call a server function? I am following this guide on theme switcher (cookie based) and its not working. https://nisabmohd.vercel.app/tanstack-dark

Uncaught (in promise) Error: Cannot read properties of undefined (reading 'body')
    at Object.deserialize (ShallowErrorPlugin.js?v=02fb136a:28:12)
    at deserializePlugin (index.mjs?v=02fb136a:2016:18)
    at deserialize (index.mjs?v=02fb136a:2145:14)
    at deserializeTop (index.mjs?v=02fb136a:2175:12)
    at fromCrossJSON (index.mjs?v=02fb136a:3661:10)
    at getResponse (serverFnFetcher.js?v=02fb136a:130:22)
    at async serverFnFetcher (serverFnFetcher.js?v=02fb136a:51:12)
    at async client (createServerFn.js?v=02fb136a:212:21)
Was this page helpful?