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
Regards - David.
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
- I have done something wrong/ stupid - in which case any guidance would be gratefully received.
- 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.
Regards - David.