Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when using React Native Debugger #2819

Closed
Toastbroad opened this issue Jan 10, 2022 · 7 comments
Closed

App crashes when using React Native Debugger #2819

Toastbroad opened this issue Jan 10, 2022 · 7 comments
Assignees
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario

Comments

@Toastbroad
Copy link

Toastbroad commented Jan 10, 2022

Description

Due to this line introduced here the app crashes when using React Native Debugger since global._chronoNow is undefined.

Error message is: global.performance.now is not a function

Compare to: #2760

Changes

I would suggest a patch similar to the following:

global.performance = {
    now: global._chronoNow || (() => {}),
};

Package version

  • React Native Reanimated: 2.3.1
  • React Native Debugger: 0.12.1
@github-actions
Copy link

github-actions bot commented Jan 10, 2022

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Snack or minimal code example, Package versions and Affected platforms sections.

@github-actions github-actions bot added Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario labels Jan 10, 2022
@github-actions
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?

@mjmasn
Copy link

mjmasn commented Jan 10, 2022

@Toastbroad I think this one is already fixed (see recent commits) - hopefully there will be a new release soon...

@NoahKr
Copy link

NoahKr commented Jan 11, 2022

I'm experiencing the same issue.

@29er
Copy link

29er commented Jan 12, 2022

me too. same issue. if i go into core.ts and change line 386ish. it works

 global.performance = {
        now: global._chronoNow,
      };

to

      if (global.performance == null) {
        global.performance = {
          now: global._chronoNow,
        };
      }

@piaskowyk
Copy link
Member

Duplicate: #2827
This issue is already resolved here: #2771 but it isn't released yet. We will release 2.3.2 soon, please be patient 🙏

@piaskowyk piaskowyk self-assigned this Jan 14, 2022
@Biplovkumar
Copy link

Duplicate: #2827 This issue is already resolved here: #2771 but it isn't released yet. We will release 2.3.2 soon, please be patient 🙏

will wait till 2.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario
Projects
None yet
Development

No branches or pull requests

6 participants