react-native-reanimated: [3.4.0 nightly] isWeb is not a function on decay.ts
Description
On yesterday’s nightly 3.4.0-nightly-20230629-1fa467e6a
it throwed this error:
`facebook::jsi::JSError: isWeb is not a function (it is Object)
TypeError: isWeb is not a function (it is Object) at anonymous (JavaScript:1:103) at anonymous (JavaScript:1:1813) at apply (native) at runWorklet (JavaScript:1:207) at anonymous (JavaScript:1:886) at handleAndFlushAnimationFrame (JavaScript:1:147)
0 unknown file -0x4 unknown method`
I use this library to display full screen gallery: https://github.com/Flair-Dev/react-native-awesome-gallery
Steps to reproduce
- Install yesterday’s nightly
3.4.0-nightly-20230629-1fa467e6a
Snack or a link to a repository
Reanimated version
3.4.0 nighlty
React Native version
0.72.1
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Release mode
Device
Real device
Device model
iPhone 13
Acknowledgements
Yes
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (11 by maintainers)
Commits related to this issue
- Fix isWeb is not a function (#4661) <!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easil... — committed to software-mansion/react-native-reanimated by efstathiosntonas a year ago
- Fix isWeb is not a function (#4661) <!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easil... — committed to software-mansion/react-native-reanimated by efstathiosntonas a year ago
@Latropos thanks, totally forgot about this one!
Closing, since the bug in issue description “isWeb is not a function on decay.ts” is already solved
I can track this error only on crashlitycs (never experienced on my devices). Next release I will upgrade to latest version and I will let you know!
@efstathiosntonas Obviously, if you would like to submit a PR, feel free to do so (since you’re the one who found the root cause of the issue and we appreciate it!)
great, thanks @tomekzaw, keep it up!
@efstathiosntonas Thanks a lot for the investigation! This is the change that I’ve introduced in #4594:
For some reason, this assignment was moved to inside a worklet in #4519, probably while resolving Git conflicts:
We will submit a fix soon, thanks again!