Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'trim') #3984

Closed
sentry-io bot opened this issue Mar 28, 2024 · 0 comments · Fixed by #3985
Closed

TypeError: Cannot read properties of undefined (reading 'trim') #3984

sentry-io bot opened this issue Mar 28, 2024 · 0 comments · Fixed by #3985
Assignees
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: frontend Related to the Nuxt frontend 🐛 tooling: sentry Sentry issue

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 28, 2024

Problem

This error seems to be very rare, but it still happens with the case.split utility.

/**
* Split any cased input strings into an array of words.
*/
function split(input: string) {
let result = input.trim()

TypeError: Cannot read properties of undefined (reading 'trim')
  at split (./src/utils/case.ts:19:22)
  at capitalCase (./src/utils/case.ts:78:10)
  at useProviderStore.actions.getProviderName (./src/stores/provider.ts:113:40)
  at useSingleResultStore.actions._addProviderName (./src/stores/media/single-result.ts:68:46)
  at key (./src/stores/media/single-result.ts:164:27)
...
(5 additional frame(s) were not displayed)

Reproduction

Unknown.

Aditional context

Sentry Issue: OPENVERSE-FRONTEND-1GV

@sentry-io sentry-io bot added 🐛 tooling: sentry Sentry issue 💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: frontend Related to the Nuxt frontend labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: frontend Related to the Nuxt frontend 🐛 tooling: sentry Sentry issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant