You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was comparing my code with the source code because I thought I made a typo, but this error also shows up when running your source code
The error
/var/www/html/52/models/Post.js:67
username: post.author.username,
TypeError: Cannot read properties of undefined (reading 'username')
at /var/www/html/52/models/Post.js:67:31
at Array.map ()
at /var/www/html/52/models/Post.js:65:19
at processTicksAndRejections (node:internal/process/task_queues:96:5)
The text was updated successfully, but these errors were encountered:
TheLaughingThird
changed the title
Error even with source code for lecture 72 (previous lecture Nr52 ? )
Error even with source code for lecture 78 (previous lecture Nr52 ? )
Nov 15, 2022
Hello,
There seems to be a problem with the 52-end.zip source code package. In lesson 78 I cant get the author name to be dynamic and my app keeps crashing. Link to course: https://www.udemy.com/course/learn-javascript-full-stack-from-scratch/learn/lecture/15187916
When you try to visit a post you do have created like this example.
http://localhost:3000/post/63737db924dc689ee19085eb
When you run it , it throws a error.
I was comparing my code with the source code because I thought I made a typo, but this error also shows up when running your source code
The error
/var/www/html/52/models/Post.js:67
username: post.author.username,
TypeError: Cannot read properties of undefined (reading 'username')
at /var/www/html/52/models/Post.js:67:31
at Array.map ()
at /var/www/html/52/models/Post.js:65:19
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Enclosure
52-end.zip
The text was updated successfully, but these errors were encountered: