tRPCttRPC
Powered by
SgtPepperS
tRPC•3y ago•
3 replies
SgtPepper

TRPC works but getting unpredictable Typescript warnings for a barebones trpc monorepo project

Hi,
TRPC is working as expected but there are many warnings that feels very "off" for simple procedures.

For example (included in the screenshots), procedures that just returns a static result have warnings. Also, setting up transformer with superjson has warnings.

Easiest way to replicate this is to clone (no changes needed) the create-t3-turbo (https://github.com/t3-oss/create-t3-turbo - which uses @trpc/next), but it also happens the exact same on my project (using @trpc v10).

Environment:
- pnpm
- monorepo
- node 18
CleanShot_2024-01-18_at_18.10.12.png
CleanShot_2024-01-18_at_18.11.47.png
CleanShot_2024-01-18_at_18.16.39.png
GitHub
GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo usin...
Clean and simple starter repo using the T3 Stack along with Expo React Native - GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo using the T3 Stack along with Expo React Native
GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo usin...
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

trpc in a pnpm monorepo
JZuberoJJZubero / ❓-help
3y ago
Prisma+TRPC monorepo
KimblisKKimblis / ❓-help
4y ago