You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run npm run start or node .output/server/index.mjs
Observe in Console tab that there is an error TRPCClientError: Unable to transform response from server.
Describe the bug
I want to use trpc with superjson for transforming json data and classes, but it seems like the registered classes work in development but after build, it only runs on one-side (the api endpoint returns the right json + metadata in the network request) but trpc fails to transform it on the server, most likely somehow not registering the classes.
Environment
Reproduction
https://stackblitz.com/edit/github-wn9aqn-sxviyo
npm run build
npm run start
ornode .output/server/index.mjs
TRPCClientError: Unable to transform response from server
.Describe the bug
I want to use trpc with superjson for transforming json data and classes, but it seems like the registered classes work in development but after build, it only runs on one-side (the api endpoint returns the right json + metadata in the network request) but trpc fails to transform it on the server, most likely somehow not registering the classes.
linked discussion in trpc: trpc/trpc#4790
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: