The inferred type of 'trpc' cannot be named without a reference ...
Hey everyone,
I just changed around the structure of my monorepo where I now have my nextjs application inside of apps/nextjsapps/nextjs and my trpc server code in packages/apipackages/api.
Doing this however gives me this error which definitely seems related to types not being shared properly between the two packages. I am using yarn (1.22.19) workspaces.
I saw some other posts on here that seemed related but no matter what I did I couldn't get the error to disappear .. what is strange as well is that it is saying it cannot be named without a reference to the react query trpc package but only when I use the AppRouter type
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
t
tRPC
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.