Skip to content

Runtime Error Cannot read properties of null (reading '0') #1234

Discussion options

You must be logged in to vote

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

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@babakhalid
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by babakhalid
Comment options

You must be logged in to vote
1 reply
@vinhnemo
Comment options

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