Skip to content

Can't find variable: Performance #1089

@HaswinVidanage

Description

@HaswinVidanage

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 1.55.1

react-native version: 0.60.0

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:


I have following issue:

Getting the error "Can't find variable: Performance"

87251c266aae7d495e8dd772249b22ac

Problem seems to originate from this method located at npm_modules/@sentry/utils/dist /misc.js

function getReactNativePerformanceWrapper() {
var INITIAL_OFFSET = performance.now(); // <-- This performance does not exists
return {
now: function () {
return performance.now() - INITIAL_OFFSET;
},
timeOrigin: INITIAL_TIME,
};
}

Steps to reproduce:

  • react-native run-android

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