Skip to content

Cannot read properties of undefined (reading 'sentry') when using reactComponentAnnotation with @react-three/fiber #530

Closed
@Y0lk

Description

@Y0lk

Environment

@sentry/webpack-plugin 2.16.1

Steps to Reproduce

  1. Setup @sentry/webpack-plugin with reactComponentAnnotation enabled
  2. Install @react-three/fiber and use any of the components

Expected Result

It wouldn't be possible to annotate the @react-three/fiber components but it should at least not crash.

Actual Result

Crashes with the following error: Cannot read properties of undefined (reading 'sentry')

I imagine the reason why this happens is because of how @react-three/fiber works, where it turns JSX into THREE objects. reactComponentAnnotation is unusable in our project because of this issue so it'd be great if there was a way to fix this. At the very least, you might wanna add some kind of warning to your documentation.

Metadata

Metadata

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions