Error: Cannot read properties of null (reading '0')
veitbjarsch opened this issue · comments
Hi @veitbjarsch,
I had the same error, I fix it by changing the lines 11-14 in the file app/components/error/MissingFirestoreIndex.tsx to this :
const link = error.details.match( /(http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])/ )?.[0] ?? "";
Hi @veitbjarsch,
I had the same error, I fix it by changing the lines 11-14 in the file app/components/error/MissingFirestoreIndex.tsx to this :
const link = error.details.match( /(http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])/ )?.[0] ?? "";
I had the same issue, however this suggestion from @babakhalid did the trick - great stuff 🙌 🌟