The inferred type of 'trpc' cannot be named without a reference. A type annotation is necessary.
Hello everybody... I have a nodejs + reactjs + yarn monorepo using turbo. I am getting this error when declaring trpc on client side. Please help.
I have setup my code following the example here at
https://github.com/kuubson/react-cra-trpc/
I have tried the solutions suggested here at https://github.com/trpc/trpc/issues/2717#issuecomment-1247425462
This is the first time I am using trpc. Any helps & pointers would be great. Thanks!!!
I have setup my code following the example here at
https://github.com/kuubson/react-cra-trpc/
I have tried the solutions suggested here at https://github.com/trpc/trpc/issues/2717#issuecomment-1247425462
This is the first time I am using trpc. Any helps & pointers would be great. Thanks!!!

GitHub
template for monorepo (turborepo): client (React + CRA) + server (Express + tRPC) + pnpm, emphasizing the use of absolute paths. - GitHub - kuubson/react-cra-trpc: template for monorepo (turborepo)...
GitHub
Provide environment information System: OS: macOS 12.5.1 CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz Memory: 6.09 GB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.8.0 - ~/.volta...