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

  1. 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

Most upvoted comments

@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

@angelica-snowit how about 3.6.1?

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:

Zrzut ekranu 2023-07-2 o 10 28 34

For some reason, this assignment was moved to inside a worklet in #4519, probably while resolving Git conflicts:

Zrzut ekranu 2023-07-2 o 10 29 14

We will submit a fix soon, thanks again!