Skip to content

Calling Sentry.init in Electron will result in an error. #14133

@HaoZhouInRC

Description

@HaoZhouInRC

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.27.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

sentry.init({

})

Steps to Reproduce

  1. run in electron
  2. init sentry

Expected Result

Can be initialized normally.

Actual Result

Image

Image

Cause by #12668

Electron chrome runtime https://www.electronjs.org/docs/latest/api/extensions#chromeruntime

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions