WordPress / openverse

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
https://openverse.org
MIT License
255 stars 203 forks source link

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

Closed stacimc closed 4 months ago

stacimc commented 2 years ago

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

krysal commented 4 months ago

Closing due to inactivity. The codebase has shifted a lot since this was opened.