createTRPCReact cannot be named without a reference to x
Hey, I have a monorepo where I have a separate package for trpc (@repo/api) which I'm trying to use on the frontend.
When trying to create
createTRPCReact
I'm getting the following type error
Here's my code on the react app
And here's the code in the api package
5 Replies
Repo to reproduce https://github.com/kinsyudev/eq-poc
GitHub
GitHub - kinsyudev/eq-poc
Contribute to kinsyudev/eq-poc development by creating an account on GitHub.
Bump
yo bro @kinsyu did u manage to solve it?
facing exact same issue here
nope
Just decided to roll with it :shrug:
What's your tsconfig? Do you have something regarding declaration enabled? I think I had similar issues with declaration or declarationMap enabled...