react-native-reanimated: React Native 0.71.0 - Failed to print error: Cannot read property 'apply' of undefined
Description
console object missing assert
and other methods. This causes the debugger to break. Can no longer to make websocket connections or hot module reload while developing.
Steps to reproduce
- Upgrade to react-native@0.71.0
- Install
"react-native-reanimated": "3.0.0-rc.10",
- Run app in ios simulator
Snack or a link to a repository
https://github.com/rili-live/therr-app/tree/main/TherrMobile
Reanimated version
3.0.0-rc.10
React Native version
0.71.0
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
None
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 6
- Comments: 37 (8 by maintainers)
Commits related to this issue
- Fix chrome debugger for Android (#4474) ## Summary PR fixed problem with `Cannot read property 'apply' of undefined` during usage of Chrome Debugger on Android Fixes https://github.com/software-man... — committed to software-mansion/react-native-reanimated by piaskowyk a year ago
- fix: console.assert is not defined during debug (#4365) ## Summary Fixes #3951 #4263 #4354 ## Test plan I can now successfully debug using React Native Debugger again. Same fix was proposed by @ri... — committed to wordpress-mobile/react-native-reanimated by KiwiKilian a year ago
- Fix chrome debugger for Android (#4474) ## Summary PR fixed problem with `Cannot read property 'apply' of undefined` during usage of Chrome Debugger on Android Fixes https://github.com/software-man... — committed to wordpress-mobile/react-native-reanimated by piaskowyk a year ago
- fix: console.assert is not defined during debug (#4365) ## Summary Fixes #3951 #4263 #4354 ## Test plan I can now successfully debug using React Native Debugger again. Same fix was proposed by @ri... — committed to DrRefactor/react-native-reanimated by KiwiKilian a year ago
react-native-reanimated: "^2.14.4"
shifted to this version will solve your problem Worked for me TESTEDI have created the following patch and the issue seems to be solved for development.
react-native-reanimated: “2.14.4” is working, but it’s causing the animations to run crazy slow when debugging Android with Chrome (e.g. 10 secs or so to open a Drawer). Do we have any news on a fix for v3?
Still facing the same issue on 0.71.6 with 3.1.0
react-native-reanimated: “^2.14.4” shifted to this version will solve your problem use this version and 1-yarn 2-cd ios 3-pod install 4-cd … 5- yarn start --reset-cache (it is very important step) 6-make sure you close the bundler and close app 7-run new build from xcode
Ok, I reproduced this error on Android. Here is the fix: https://github.com/software-mansion/react-native-reanimated/pull/4474 - works for me 🎉
@mohamedshrif995 Yeah 2.14.4 is already running fine. @ManjodhSaran already mentioned this in comment before, but do you know what is an issue with latest v3.0.2 ??
react-native-reanimated is causing lot of issues
just to be sure try to clear metro cache -
yarn start --reset-cache
Thank you very much! I’ve been struggling with this for a long time. When can I expect a release with a fix?
it work now with last version
This option does not suit me because other libraries need the latest version of react-native-reanimated.
Are there any other options?
WORKING FOR ME
I am also facing this issue. It makes 3.0.2 unusable 😦 Can some take care of it??? @ManjodhSaran solution to downgrade works … I am able to debug android again but it is not a solution for v3 😃