Skip to content

Unable to build project due to Typescript error 'dsn' does not exist in type 'BrowserOptions'` #4746

Closed
@klipnot

Description

@klipnot

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

6.19.0

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

updated to 6.19.0 and try to build an already existing and working project;

Expected Result

Project to build as it was the case with previous version.

Actual Result

Build error

Argument of type '{ dsn: string; beforeSend: (event: any, hint: any) => any; environment: string; }' is not assignable to parameter of type 'BrowserOptions'.", " Object literal may only specify known properties, and 'dsn' does not exist in type 'BrowserOptions'

I have seen this issue but if it's "due to some misconfiguration of typescript compiler" I'm curious to know why it's was working on previous version with the same configuration ?

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions