Skip to content

Class 'SyncPromise<T>' incorrectly implements interface 'Promise<T>'. for @sentry/browser@5.7.0 #2265

Closed
@Rdbaker

Description

@Rdbaker

Package + Version

  • @sentry/browser - 5.7.0

Version:

5.7.0

Description

Our typescript app failed the build when compiled with the latest sentry/browser (5.7.0)

ERROR in node_modules/@sentry/utils/dist/syncpromise.d.ts(5,22):
error TS2420: Class 'SyncPromise<T>' incorrectly implements interface 'Promise<T>'.
    Types of property '[Symbol.toStringTag]' are incompatible.
    Type 'string' is not assignable to type '"Promise"'.

I noticed that this only happened when we picked up the latest release, let me know if you need other information to reproduce. We're using typescript version 2.4.2

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