#Typing issues since V6 upgrade (with output)

5 messages · Page 1 of 1 (latest)

dull talon
#

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? 🙂

crimson sandBOT
#

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!

fossil oar
#

Does the issue persist if you restart your VS Code TypeScript server?

frozen jackal
dull talon
#

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?