Skip to content

TypeError: options.transport is not a function when using browser client directly #5422

@ajsharp

Description

@ajsharp

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/browser

SDK Version

7.6.0

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

I'm trying to integrate the client directly to build a custom react error boundary component as laid out here

Expected Result

Browser client should initialize successfully

Actual Result

This results in a TypeError: options.transport is not a function exception. It appears the BrowserClient constructor is expecting a transport option as a function.

CleanShot 2022-07-15 at 10 25 49@2x

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions