Closed aipni closed 8 months ago
Can anyone help on this issue
on my local development i got an error on this part
" <Image src={post.creator.image} alt='user_image' width={40} height={40} className='rounded-full object-contain' /> "
return ( _post && post.creator &&_
);
Adding above bold code fixed the issue
could you please specify, where to add this code "return ( post && post.creator &&"
components/PromptCard.jsx
line number 29
from console chrome dev tools " TypeError: Cannot read properties of null (reading 'image') at o (page-241b7b2b063c19b3.js:1:1965) "
from console chrome dev tools " "div", { className: "flex-1 flex justify-start items-center gap-3 cursor-pointer", onClick: f, children: [(0, r.jsx)(n(), { src: t.creator.image, alt: "user_image", width: 40, height: 40, className: "rounded-full object-contain" }),
"
webpage home after deploying to vercel " Application error: a client-side exception has occurred (see the browser console for more information). "