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.
1 Reply
tartuke
tartuke11mo ago
In schema.prisma add 'previewFeatures = ["driverAdapters"]' to the client. generator client { provider = "prisma-client-js" previewFeatures = ["driverAdapters"] }
Want results from more Discord servers?
Add your server