SgtPepperS
tRPC2y 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
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...
Was this page helpful?