Skip to content

Tracing Code uses String.includes (unsupported in IE11) #2681

@rtpg

Description

@rtpg

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.17.0

Description

String.prototype.includes is included in this tracing code.

This function is defined in ES2015, but IE11 doesn't fully support ES2015, and doesn't define this one in particular.

In the past we had issues with IE11 on @sentry/browser in the past as well. I'm fairly certain you are not dropping IE11 support (given it's still supported in Windows 10), but if that's the case it would probably good to edit your tsconfig.json to set the target to ES5 or something to actually confirm usage of problem functions like this.

If you're not targetting IE11, please state that explicitly somewhere.

Sentry error

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