Issue
I have a React application that I build and deploy with Electron. Should I use @sentry/react
or @sentry/electron
, or both?
Applies To
- All SaaS Customers and Self-Hosted Users
- SDK setup
Resolution
By default our Electron SDK Captures Node errors in the main process (using @sentry/node)
, and captures JavaScript errors in renderer processes (using @sentry/browser
)(reference).
When caling the init method of the Electron SDK in the renderer process, you will want to combine SDKs as described here:
https://docs.sentry.io/platforms/javascript/guides/electron/#framework-specific-sdks
Because you want to end up starting both the Electron and React SDKs.