Skip to content

SentryReact.init 9+ isn't compatible #922

@benoitletondor

Description

@benoitletondor

Environment

React 19 + Capacitor V7 using Typescript

Steps to Reproduce

  1. Have Sentry Capacitor 2.0.0-beta.2 (or any version below)
  2. Have Sentry React >= 9
  3. Call SentryCapacitor.init(..., SentryReact.init)

Expected Result

It would be compatible

Actual Result

Argument of type '(options: BrowserOptions) => Client<ClientOptions<BaseTransportOptions>> | undefined' is not assignable to parameter of type '(passedOptions: { dsn: string; environment: any; } & Options<BrowserTransportOptions> & BrowserClientReplayOptions & BrowserClientProfilingOptions & { ...; } & { ...; }) => void'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions