hi anyone know how i can get rid of this error?
# orm-help
f
hi anyone know how i can get rid of this error?
s
I would try run
yarn prisma introspect && yarn prisma generate
and then
yarn dev
or whatever your dev script is (replace
yarn
with
npm run
if needed). That may solve it if you just needed to regenerate. If not, I would then check
schema.prisma
and search for
model investor
to ensure that it is not commented out due to something like missing primary key. It should tell you why it's commented out if it is. Other than that, I don't know. If the model is there and you have regenerated and it still doesn't work, there may be a deeper issue.
f
thanks - did all that clean up and restarted my IDE and it worked - not sure why i had to restart thought for it to work
l
If using VSCode sometime the internal TS doesn't find the updates