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?
Theo - t3․gg
YouTube
T3 Stack Tutorial - FROM 0 TO PROD FOR $0 (Next.js, tRPC, TypeScrip...
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...
13 Replies
This is the error on the
ctx.prisma.post.findMany()
call
Run prisma generate and restart vs code
npm install isn’t enough?
What do you mean?
Somewhere in the video, Theo mentioned that you can just run npm install in place of prisma generate to sync up the database sometimes
But not really sure why
Hmmmmm, that's odd, npm install is an npm command, the only thing it does is install , literally, you can't just change what it does. For the contrary, on the package.json under scripts you can make one that when you let's say, run dev, it generates the schema first and then run the build
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
im still confused when theo use SSG on username, what does he trying to achived and should i use that to on my projects?
@Dale if you have
postinstall
script in package.json
, you can npm install
and then it will automatically run what you put in that script 🙂 I do it in my project.
Maybe that's why he told so
But forgot to mention this postinstall or smtham experiencing the same issue i run both
npx prisma generate
npm prisma db push
npm install
i even tried in WebStorm it's completely broken
api.posts.getAll.useQuery()
oh ty
Oh I do have that. It looks like I just needed to restart VSCode
Thanks!