tRPCttRPC
Powered by
KrishnaK
tRPC•3y ago•
2 replies
Krishna

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!!!
image.png
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 - 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...
bug: The inferred type of 'appRouter' cannot be named without a ref...
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

The inferred type of 'trpc' cannot be named without a reference
sh03Ssh03 / ❓-help
2y ago
The inferred type of 'trpc' cannot be named without a reference ...
jacobJjacob / ❓-help
3y ago
The inferred type of 'trpc' cannot be named without a reference to '...'
segment_treeSsegment_tree / ❓-help
2y ago
Type error: The inferred type of 'trpc' cannot be named without a reference....
j...Jj... / ❓-help
3y ago