t
tRPC
K
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
!
!
!
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
.
.
.
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Was this page helpful?
Yes
No
Similar Threads
Recent Announcements
Similar Threads
The inferred type of 'trpc' cannot be named without a reference
S
sh03 / ❓-help
2y ago
The inferred type of 'trpc' cannot be named without a reference ...
J
jacob / ❓-help
3y ago
The inferred type of 'trpc' cannot be named without a reference to '...'
S
segment_tree / ❓-help
2y ago
Type error: The inferred type of 'trpc' cannot be named without a reference....
J
j... / ❓-help
3y ago