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
Information about the environment:
OS: Windows 10
WebStorm: WS-223.8836.27
NodeJS: 16.17.1
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
Worked like magic!
Thank you so much @Yiannis , that was it
Just don't forget to mark the question as completed
I don't have the Apps option, how can I do that? I was looking to do that
You mean the app directory ? That is still in beta and it brakes the rest of stack so it's disabled
This one I don't have that option
just click on the three dots next to your question message body
That's interesting 😄 maybe the mods do it then
Sorry, didn't know
Yeah it's weird cause I got the notification but I don't have the option
can you do it on my message ? It says on the solution message
same dialog
interesting. So i guess the mods do it then
hmmm...maybe...should I get in touch with anyone about it?
Don't worry about it, I'm sure they will see this