Skip to content

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

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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