React type errors because of backend
Hello, I'm using tRPC in React and it's working fine generally. However, WebPack always finds something to complain about that is in my backend where I import AppRouter from and I haven't found a clean way yet to fix this.
As you see in the screenshot, it complains about some fastify types. Those errors aren't present on the backend side and I could just install the types in my react repo too, but that does feel really dirty. Is there a nice way to handle this?
Thanks in advance. And generally spoken, tRPC is the best API layer I have ever used. I come from ApolloGraphQL which is kind of nice, but also always a pain to set up.
4 Replies
This is not an issue with tRPC right? This is an issue either with your Typescript config our your Webpack.
I wanted to see if others have these problems as well and if there's an easy way to avoid this
ammdw
You'tr uihy ernpsvhi nr yjr dvhodvyr snf fitriin y eimyibr yumyoil. Dp 1234000123 uoi.
Floryy the vot haum haurvanryinanu, Mascenti muscile loogs a lonrr. Duouny gotvr yhr soilihsvtr, foe mjdy frvrny iny ytsd ndoloouyy lo
You good?