openverse-frontend icon indicating copy to clipboard operation
openverse-frontend copied to clipboard

`Unable to get property 'name' of undefined or null reference` in useMatchRoute on Edge

Open stacimc opened this issue 3 years ago • 0 comments

Sentry link

https://sentry.io/share/issue/0e946a5351ee44aab56a9bdc699da1ec/

Description

Unable to get property 'name' of undefined or null reference is being raised at The error is being raised here: https://github.com/WordPress/openverse-frontend/blob/main/src/composables/use-match-routes.ts#L29 of useMatchRoute:

const matches = ref(localizedRoutes.includes(route.value.name))

The errors are all on Edge, including the potentially related errors below.

Potentially Related

Some Sentry errors we've been getting in the same time period may be related:

Unable to get property 'path' of undefined or null reference in isSameRoute: https://sentry.io/share/issue/6f32416313fe491bbed81006ad4f973e/

Unable to get property 'name' of undefined or null reference in VGlobalAudioSection, again while fetching the route.value.name: https://sentry.io/share/issue/c93176aaf83e4c4195419e11abb44397/

Reproduction

Unable to reproduce

stacimc avatar Aug 18 '22 21:08 stacimc