rowyio / roadmap

Roadmap voting app for sharing product plan and get customer feedback.

Home Page:https://roadmap.rowy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot read properties of null (reading '0')

veitbjarsch opened this issue · comments

Tried to install the application as descibed int the readme. Installation was fine and everything shows normal as anonymous user. But if I try to login with google I receive the following error:

Website:
image

Logs:
image

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] ?? "";

commented

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 🙌 🌟