Property 'authorId' does not exist on type 'Post[]'.
Coding along with the tutorial, and I came across this error I cant resolve.
Portion in the video:
47:33
Code thus far:
4 Replies
can you send your prisma schema
db pushing + restarting vs code will often fix a lot of weird type errors
You are trying to access .authorId on the whole array
^ I didnt even read the code but yes
if you hover posts
you can see, it doesnt have authorId, as it is an array
oh my god you're right, i was accessing the wrong thing being 1 letter off,
posts
instead of post
my bad it was 3am :')