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 undefined #14075

Closed
3 tasks done
devkobby24 opened this issue Oct 24, 2024 · 4 comments
Closed
3 tasks done

TypeError. Cannot read undefined #14075

devkobby24 opened this issue Oct 24, 2024 · 4 comments
Labels
Package: browser Issues related to the Sentry Browser SDK

Comments

@devkobby24
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.35.0

Framework Version

Next 14.2.16

Link to Sentry event

https://duah-justice-abban.sentry.io/issues/6015741223/events/a576e201762948788d66566998d3b7fc/

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. I run npm run build
  2. Started the build
  3. Opened the build
  4. Image

Expected Result

I expect my app to run perfectly since i can't seem to find any errors in my code

Actual Result

Image
Image

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 24, 2024
@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Oct 24, 2024
@lforst
Copy link
Member

lforst commented Oct 24, 2024

Hi, would you mind sharing a reproduction example? Thanks!

The SDK generally doesn't access anything with .sentry so it seems like this is coming from your own code. Maybe you can make out where this error is coming from?

@devkobby24
Copy link
Author

I've searched throughout my entire codebase, can't find any .sentry or even 'sentry' besides the files added by sentry

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 25, 2024
@rwachtler
Copy link

rwachtler commented Oct 25, 2024

Hi @devkobby24 ! I think I might have a clue what the issue could be here. I've checked your codebase and noticed that you use react-three. I think you are experiencing the same issue as:

As suggested in the latter, please use the workaround and set reactComponentAnnotation: {enabled: false} in your next.config.mjs. Let me know if that works for you, thanks!

@devkobby24
Copy link
Author

Hi @rwachtler Thanks a lot.
Your suggestion worked perfectly for me👊🏾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: browser Issues related to the Sentry Browser SDK
Projects
Archived in project
Development

No branches or pull requests

3 participants