Change8
Error1 reports

Fix TRPCClientError

in tRPC

Solution

TRPCClientError usually arises when the server-side TRPC procedure throws an error that isn't properly serialized or handled by the client. To fix it, ensure server-side errors are instances of `TRPCError` from `@trpc/server`, and that your client-side code correctly handles `TRPCClientError` by checking its `TRPC_ERROR_CODE_KEY` to determine the specific server-side error.

Timeline

First reported:Feb 7, 2025
Last reported:Feb 7, 2025

Need More Help?

View the full changelog and migration guides for tRPC

View tRPC Changelog