Yorkshire Geek
TTCTheo's Typesafe Cult
•Created by Yorkshire Geek on 2/1/2024 in #questions
type 'PrismaPlanetScale' is not assignable to type 'never' Error following the T3 Stack Tutorial
Hi, I am following the tutorial and a couple of things.. I get a couple of errors before successfully deploying to Vercel.
I got a type 'PrismaPlanetScale' is not assignable to type 'never' error on line 18 of db.ts
adapter: new PrismaPlanetScale(client),
I got past this by commenting it out.
Also, following the tutorial my original data object in schema.prisma was
model Example { ... }
which is what the tutorial wanted... but this gives another compile error, and I had to change back to model Post { ... }
After doing the above, I have successfully deployed. I suspect either
1. I have done something wrong/ stupid - in which case any guidance would be gratefully received.
2. Or the docs/ tutorial haven't kept up with the create app, in which case, perhaps this post will be helpful to others staring sadly at a stack trace in Vercel.
thanks for what is a really interesting project, that has kept me happy for the last couple of hours.
Regards - David.
3 replies