Runtime Error Cannot read properties of null (reading '0') #1234
-
Hi, I'm getting this error when I signed in using Google : This is the link of the app : https://rowy-roadmap-eight.vercel.app/roadmap Please help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Looks like you are self hosting the roadmap. The log indicates there is an issue in this line: Does it work if you add try-catch to handle the error? |
Beta Was this translation helpful? Give feedback.
-
Thank you I resolved the issue by changing the line you mentioned to : |
Beta Was this translation helpful? Give feedback.
-
I'm getting this error : Firestore index required Thank you |
Beta Was this translation helpful? Give feedback.
Thank you I resolved the issue by changing the line you mentioned to :
const link =
error.details.match(
/(http|https)://([\w_-]+(?:(?:.[\w_-]+)+))([\w.,@?^=%&:/
+#-]*[\w@?^=%&/+#-])/)?.[0] ?? "";