global.performance.now is not a function
See original GitHub issueDescription
I run into the following type error when trying to attach a chrome debugger to the iOS simulator or physical device.
global.performance.now is not a function
Expected behavior
The type error should not appear and chrome debugging should be possible
Actual behavior & steps to reproduce
So far I was not able to reproduce it in a minimal code example (still working on it), but I can fix it in my app by commenting out every import of react-native-reanimated
Snack or minimal code example
tbd soon
Package versions
- React Native: 0.66.0 (also seen on 0.66.4)
- React Native Reanimated: 2.3.0
- NodeJS: v16.13.1
- Xcode: 13.1
- Chrome, Brave, react-native debugger with latest versions
Affected platforms
- Android
- iOS
- Web
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
global.performance.now is not a function in react native ...
Unable to find any solution to this query. TypeError: global.performance.now is not a function at node_modules/expo/build/ ...
Read more >global.performance.now is not a function in react native # ...
Description. When launching an app that uses reanimated and open the Chrome debugger on iOS, we get the following error:.
Read more >TypeError: global.performance.now is not a function
TypeError: global.performance.now is not a function ; 1. make change to this file: node_modules/react-native-reanimated/src/reanimated2/core.ts Line 386, remove ...
Read more >performance.now() - Web APIs - MDN Web Docs
The performance.now() method returns a DOMHighResTimeStamp, measured in milliseconds.
Read more >How to solve the issue that arise while using performance. ...
Generally, the best way to check the performance of the functions in JavaScript is the built-in performance.now() method.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Is this going to be released in a version soon?
If you’re on 2.3.1 just use https://www.npmjs.com/package/patch-package
patches/react-native-reanimated+2.3.1.patch