MichaelJC91M
tRPC15mo ago
19 replies
MichaelJC91

React app not inferring trpc client correctly

I have a monorepo with a packages folder that contains my api. That gets installed in a next js app, as well as a widget built in react using vite. All of a sudden my react app is not inferring my router correctly saying that property does not exist on type never.

What exactly is happening here? I've added a few screenshots of my configs
Screenshot_2024-10-22_at_8.51.22_AM.png
Screenshot_2024-10-22_at_8.51.12_AM.png
Screenshot_2024-10-22_at_8.51.02_AM.png
Screenshot_2024-10-22_at_8.50.54_AM.png
Was this page helpful?