Theo's Typesafe CultTTC
Theo's Typesafe Cultβ€’3y agoβ€’
17 replies
Dale

t3 video tutorial typescript error

I am following along with the official t3 stack video tutorial here. At ~24 min, there is a typescript error in TRPC, and Theo restarts the server, which fixes the problem. I am getting the same problem, but restarting the server doesn't fix the problem. Any ideas?

import { z } from "zod";

import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";

export const postsRouter = createTRPCRouter({
  getAll: publicProcedure.query(({ ctx }) => {
    return ctx.prisma.post.findMany();
  }),
});
YouTubeTheo - t3β€€gg
I've never worked this hard on a video before. I really hope y'all can benefit from this πŸ™

GITHUB REPO https://github.com/t3dotgg/chirp
DEPLOYED APP https://xn--uo8h.t3.gg/
GET A JACKET IF YOU'RE COOL LIKE THAT https://shop.t3.gg/

ALL MY VIDEOS ARE POSTED EARLY ON PATREON https://www.patreon.com/t3dotgg
Everything else (Twitch, Twitter, Discor...
T3 Stack Tutorial - FROM 0 TO PROD FOR $0 (Next.js, tRPC, TypeScrip...
Was this page helpful?