prisma ctx not recognizing types after schema update

I have been working with create-t3-app and have stumbled upon something that I might not be doing right so I'm trying to check here to see if I'm missing a step in the process or what could be the issue. I have initially created a schema for my app for prisma, but the problem is every time I go back and update it, push it and generate the typescript files, I get this weird message all the time unless I delete the .next and node_modules folders. Do you guys have any suggestion on to why this is happening or how can I manage this? Any help is greatly appreciated!
18 Replies
derains
derains•2y ago
Information about the environment: OS: Windows 10 WebStorm: WS-223.8836.27 NodeJS: 16.17.1
Yiannis
Yiannis•2y ago
Restart your ES lint server! Generally after your do your db push, you should also do prisma generate and then, stop and start your dev server and restart ts and es lint servers
derains
derains•2y ago
Worked like magic! Thank you so much @Yiannis , that was it
Yiannis
Yiannis•2y ago
Just don't forget to mark the question as completed
derains
derains•2y ago
I don't have the Apps option, how can I do that? I was looking to do that
Yiannis
Yiannis•2y ago
You mean the app directory ? That is still in beta and it brakes the rest of stack so it's disabled
derains
derains•2y ago
This one I don't have that option
Yiannis
Yiannis•2y ago
just click on the three dots next to your question message body
Yiannis
Yiannis•2y ago
derains
derains•2y ago
Yiannis
Yiannis•2y ago
That's interesting 😄 maybe the mods do it then Sorry, didn't know
derains
derains•2y ago
Yeah it's weird cause I got the notification but I don't have the option
Yiannis
Yiannis•2y ago
can you do it on my message ? It says on the solution message
derains
derains•2y ago
same dialog
Want results from more Discord servers?
Add your server