PaddyP
tRPC2y ago
5 replies
Paddy

tRPC won't return route with function, only JSON

Hey all,

Why can I go to route 'test' and the 'This is a test!' is being returned, but when I try to go to another router called 'posts' it returns this big error, 404, meaning that it doesn't even exist, right? While the function does exist, what is it exactly looking for what I don't have?

Would love to hear from someone! 🙂

Best regards.
Screenshot_2024-01-11_at_8.16.54_PM.png
Screenshot_2024-01-11_at_8.16.19_PM.png
Screenshot_2024-01-11_at_8.16.29_PM.png
Was this page helpful?