Krishna
Krishna9mo ago

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!!!
GitHub
GitHub - kuubson/react-cra-trpc: template for monorepo (turborepo):...
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
bug: The inferred type of 'appRouter' cannot be named without a ref...
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...
No description
2 Replies
Krishna
Krishna9mo ago
also finding this error during the build step
No description
Krishna
Krishna9mo ago
resolved this downgrading to old version of react-query.. Thanks to this comment https://github.com/TanStack/query/issues/6186#issuecomment-1772356489
GitHub
hashQueryKey is not exported from tanstack/react-query · Issue #618...
Describe the bug I was following a video to use nextj.js 13 app router, trcp, react-query and all was good until i try to call my query from the client and sudenly all crash. I try to find a soluti...