Is it possible to use trpc client in a shared monorepo package?
My pnpm monorepo setup:
ex.
I currently have to repeat this function in both web and mobile.
I wanted to move my trpc hooks to the shared package, but I keep getting error
i believe this is due to the fact that the package has to compile into declaration files and doesnt work with the approuter
is it not possible for me to share this API access layer? How do apps typically handle sharing TRPC code between mobile and web?
- API (express)
- packages/shared (shared code)
- web (nextjs)
- app (react native)
ex.
I currently have to repeat this function in both web and mobile.
I wanted to move my trpc hooks to the shared package, but I keep getting error
i believe this is due to the fact that the package has to compile into declaration files and doesnt work with the approuter
is it not possible for me to share this API access layer? How do apps typically handle sharing TRPC code between mobile and web?
