tRPC invalid_type error with Clerk
Hi, I have this weird issue I've been trying to resolve for a while now.
This is the error in browser console.
Here is my back-end endpoint:
and this is how I call it:
1 Reply
I suspect that the issue is in my weird middleware that is there to handle subdomains, but im not really sure:
I also don't get any type or lint errors. The error started occuring once i started migrating my application to Clerk.
Any help would be much appreciated.
The difference was in the clerk matcher and my matcher, as on match my middleware wouldn't preserve all url parameters.
ended up fixing it like so: