-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RightSidebar - TypeError: Cannot read properties of null (reading 'name') #66
Comments
Actually i have solved... or rather escaped it somehow but, it delete some of the content of the card in the right sidebar. Still trying to solve it like in the tutorial but no luck yet... so see if this one go for you, not sure if it helps.
i just put a ? inbetween of every user and .name |
Hey man, thanks for your help! This actually helped to escape that error. But have you gotten any idea why is it this way? The tutorial doesn't seem to encounter this issue. |
No problem, if i could help you it all that matters but it was after i made some research in the documentation and chat that i could have that so i can't really take credit for it, cause me i'm kind of an beginner. then again hope i can better and handle this more efficiently. -_- |
t
I encountered this too, check your .env use the NEXT_APPWRITE_KEY= then, ensure that you're logged in as a user, i.e user is not undefined, so maybe sign-up and sign-in again, should fix the issue, or add the optional symbol '?' so that your code won't break, that is making the user? optional, but better still, if you follow up the tutorial a bit further you see where in the root layout an if statement is added to see if the user is logged in |
Has anyone been able to solve this? |
Finally, I solved it! It is right from Appwrite. When creating the user attributes, I made a mistake of using string for email instead of Email. Once corrected, restart your the project, sign up and then sign in. You are good to go. Hope this helps. |
Been following the tutorial but got stuck here. Unable to identify what is the reason it's reading null from name.
The text was updated successfully, but these errors were encountered: