frontend code:
{
(opp||[]).map(opps=>{
return(
<div className="card OppCard">
<div className="card-body" >
<h4>{opps.title}</h4>
<p><b>Author : {opps.postedBy.name}</b></p>
<p style={{ "margin": "0px" }}>Description : {opps.desc}</p>
<p style={{ "margin": "0px" }}>Location : {opps.location}</p>
<p style={{ "margin": "0px" }}>Experience Required : {opps.experience}</p>
<p style={{ "margin": "0px" }}>Last Date to Apply : {opps.ld}</p>
</div>
</div>
)
})
}
At <p><b>Author : {opps.postedBy.name}</b></p> this line error occurs
here is a pic attached for opps object:

opps.postedBy && opps.postedBy.namethis will work