t
tRPC
Trouble getting a TRPC client in Astro SSR pages, instead I get a noop - tRPC
D
tRPC
•
3y ago
•
1 reply
Devin Fitzsimons
Trouble getting a TRPC client in Astro SSR pages, instead I get a noop
I
'd like to add TRPC to an Astro site
. I have an SSR route here
(
https://github.com/aisflat439/another-abandoned-idea-app/blob/main/packages/web/src/pages/index.astro
) that imports my client
. The client is straightforward and can be found here
(
https://github.com/aisflat439/another-abandoned-idea-app/blob/main/packages/web/src/trpc/client/index.ts
)
.
I get types on my
trpcAstro
trpcAstro
client so I
'm relatively confident that my server is set up correctly but here it is for reference
(
https://github.com/aisflat439/another-abandoned-idea-app/blob/main/packages/web/src/trpc/server/index.ts
)
.
I
've referenced this
https://www.thomasledoux.be/blog/using-trpc-astro-islands-react
along with a handful of sites I
've found to reference on github
. But no matter how I configure this I seem to get an empty client
(see attached image
)
I
'm likely missing something silly but does anyone see what I
'm missing
? This may also be an issue with Astro and I
'm asking a similar question in their discord
.
I have searched the help channel along checking github but I
've had no success
.
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,951
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
tRPC without SSR
N
nehalist / ❓-help
4y ago