TRPC: How to use different transformers
I followed the documentation on the https://trpc.io/docs/server/data-transformers page, but even after following the 4 steps I'm still getting the error:
tRPC failed on <no-path>: Cannot stringify arbitrary non-POJOs, cause: DevalueError: Cannot stringify arbitrary non-POJOs
Here's the code that probably generated that
I didn't return anything in the props because I was already getting an unserializable error that started after authenticating in in the ssgHelper. I would really appreciate any help!
Data Transformers | tRPC
You are able to serialize the response data & input args. The transformers need to be added both to the server and the client.
0 Replies