Typing issues since V6 upgrade (with output)
I've recently upgraded to V6.7 and I'm having issues with typing. I'm using NextJS and I have my
schema.prisma
at the root of the project and my output path set to output = "generated"
. The app starts fine, db connections etc are all good and I see the generated folder is created.
The issue I have is that the app is not picking up changing to the schema - eg: I added a new column "feedback" and the app typing does not pick that up after restarting. Error: feedback' does not exist in type ...
. If i remove the output
prop everything works as expected with new tyopes being picked up.
I can see the /generated/schema.prisma
has the changes so maybe it's the location of the generated folder?
Any ideas / debug tips? π4 Replies
You selected to wait for the human sages. They'll share their wisdom soon.
Grab some tea while you wait, or check out
#ask-ai
if you'd like a quick chat with the bot anyway!Does the issue persist if you restart your VS Code TypeScript server?
Mind moving the generated folder(s) out of the Prisma directory? I think thatβs the problem.
Thanks both - I think it's working now. Retsarting the Typescript server didn't help, it would start and generate fine but only once. I've followed the same location as the guide now and I think it's working.
I also use Accelerate on some API routes, does this require a different set up?
OK, just added some new fields and it's working as expected - thanks π