I am attempting to follow along with Theo's amazing T3 stack tutorial but have been running into an issue I was hoping someone would be able to assist with. Upon running the app, I keep getting the error:
prisma:query SELECT
trilldb
trilldb
.
Post
Post
.
id
id
,
trilldb
trilldb
.
Post
Post
.
createdAt
createdAt
,
trilldb
trilldb
.
Post
Post
.
content
content
,
trilldb
trilldb
.
Post
Post
.
authorId
authorId
FROM
trilldb
trilldb
.
Post
Post
WHERE 1=1 ORDER BY
trilldb
trilldb
.
Post
Post
.
createdAt
createdAt
DESC LIMIT ? OFFSET ?
tRPC failed on posts.getAll: Cannot read properties of undefined (reading 'users')
Ultimately what keeps happening is the posts won't retain on the app side but on the Prisma side they are.. Any suggestions?
I can provide further context, but does anyone have a quick solution for how they resolved this issue? I've tried searching online/stack overflow but to no avail.