You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/react-native/integrations/component-names.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,10 @@ The Sentry browser SDK will pick off the value from these `data` attributes and
73
73
74
74
## Troubleshooting
75
75
76
-
- Use `export SENTRY_LOG_LEVEL=debug` to enable debug logs. When generating the JS Bundle, you should see logs about the Sentry Metro Plugin saving and loading the default Babel transformer.
76
+
- If component names are missing in the reported events, check if the annotations are present in the JS bundle generated by Metro. You can text search in the bundle for the `data-sentry-component` key.
77
+
- To add the annotations `config.transformer.babelTransformerPath` is required to be set in the Metro config before calling `withSentryConfig`.
78
+
- Function `getSentryExpoConfig` returns the configuration with the Sentry Babel Transformer set, do not overwrite `config.transformer.babelTransformerPath`.
79
+
- Use `export SENTRY_LOG_LEVEL=debug` to enable debug logs and observe if Sentry detected the default transformer and if Sentry Babel Transformer was executed.
0 commit comments