Closed CharlesBT closed 9 months ago
That is weird. It works on my machine 😆. I'm wondering what might be causing the issue, though. Is it because I'm importing FetchError
from ofetch
?
Released a new version but before you upgrade, can you try if installing ofetch
fixes your issue?
Hi the trpc-client doesn't cach properly the TRPCError and did not forward TRPCError.message.
I had to edit ./dist/client/index.mjs of your package to replace line 94 if (e instanceof FetchError && e.response) { by if (e.constructor.name === "FetchError" && e.response) {
If there is no nasty border effect could you integrate this fix in the next release Thanks :)