Skip to content
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

TypeError: Cannot read properties of null (reading '_id') #3

Open
yahyo7 opened this issue Jul 23, 2024 · 2 comments
Open

TypeError: Cannot read properties of null (reading '_id') #3

yahyo7 opened this issue Jul 23, 2024 · 2 comments

Comments

@yahyo7
Copy link

yahyo7 commented Jul 23, 2024

I am getting below error after I run build and start the server. web running and after I sign up/or sign in, I am getting black page with below error:
TypeError: Cannot read properties of null (reading '_id')
at dg (index-CFb0_dR-.js:243:7512)
at Ba (index-CFb0_dR-.js:38:16961)
at sh (index-CFb0_dR-.js:40:43789)
at rh (index-CFb0_dR-.js:40:39575)
at o0 (index-CFb0_dR-.js:40:39503)
at Vi (index-CFb0_dR-.js:40:39357)
at Ho (index-CFb0_dR-.js:40:35753)
at gc (index-CFb0_dR-.js:40:36554)
at cn (index-CFb0_dR-.js:38:3258)
at index-CFb0_dR-.js:40:34095

@yahyo7
Copy link
Author

yahyo7 commented Jul 23, 2024

solved:
missed some ? when defining user(?).smth

@suraj-khot-19
Copy link

Always use ? Before using any of the field from user like =>
user?._id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants