Turborepo + trpc setup

Hi guys, I am just trying to get https://github.com/Bekacru/create-t3-turbo by @bekacru running, but I run into quite some type errors. I think it might be a typescript/tsconfig issue, but I am just using everything from the template. nothing changed.
Property 'Provider' does not exist on type '"The property 'useContext' in your router collides with a built-in method, rename this
│ router or procedure on your backend."
Property 'Provider' does not exist on type '"The property 'useContext' in your router collides with a built-in method, rename this
│ router or procedure on your backend."
I am using the TS version of the workspace, and put the .env variables in etc. pnpm i ran in the root. It is probably a setting in my vscode or some versioning that's wrong or something that will fix everything, because I doubt the template won't work out of the box since it was updated 2 weeks ago. Tried asking gpt/perplexity and such, with no success. similar problem here: https://discord-questions.trpc.io/m/1181300883233976371
GitHub
GitHub - Bekacru/create-t3-turbo: Clean and simple starter repo usi...
Clean and simple starter repo using the T3 Stack along with Expo React Native - Bekacru/create-t3-turbo
`The property 'query' in your router collides with a built-in metho...
I'm seeing an error (attached) where I can get autocompletes on TRPC in the file where the client is defined, but not anywhere I import it in. ``` // client.ts import { createTRPCProxyClient, httpBatchLink } from "@trpc/client"; import type { AppRouter } from "wherever"; export const trpcClient = createTRPCProxyClient({ links: [ httpBa...
7 Replies
bekacru
bekacru9mo ago
I'm not sure what's causing it, I'll take a look.
piros
pirosOP9mo ago
Thank you! I don't get the problem when I run the original monorepo somehow, but would prefer to use better-auth ofc If I can help please lmk
bekacru
bekacru9mo ago
since we're some commits behind. I'd say clone the original t3 turbo repo and copy the auth prats from my fork. I'll take time one of these days to clean it up.
piros
pirosOP9mo ago
cool yeah would be nice if there is an official repo out there! I think t3-turbo + better-auth is the best starter template for mobile+web apps nowadays, so would love to be able to recommend to others!
bekacru
bekacru9mo ago
thanks and yeah we'll defintley clean the starter one of these days!
piros
pirosOP9mo ago
Amazing! Yeah good templates are such a good way to get new users to try better—auth
busdriverbob
busdriverbob9mo ago
Looking forward to this as well!

Did you find this page helpful?