Skip to content

In React-Native document gets set sometimes without a location object #800

Closed
@rmevans9

Description

@rmevans9

This is a bug in TraceKit but not sure which TraceKit repository the file stored in this repo is pulled from.

Currently in my React Native app document gets set by one of the libraries used (not sure which.... just know it does with just a single property on the object). When an exception occurs and raven attempts to log that error out to Sentry (or wherever it is setup to log) the logging of the error blows up as well.

I would expect that it can handle the document object not having a location property.

The fix is to modify https://github.com/getsentry/raven-js/blob/master/vendor/TraceKit/tracekit.js#L27 to be more tolerant to the location property being undefined. I can submit a PR but want to figure out which repo that fix really should go into so that it propagates to this project so that I can start logging errors in React Native correctly.

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