software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.83k stars 1.29k forks source link

[2.3.0-beta.2](IOS) TypeError: Cannot read property 'installCoreFunctions' of undefined, js engine: hermes #2482

Closed meftunca closed 2 years ago

meftunca commented 2 years ago

simulator_screenshot_1866C906-502B-4A31-834C-330356033082

Description

TypeError: Cannot read property 'installCoreFunctions' of undefined, js engine: hermes

Expected behavior

This error should not occur

Actual behavior & steps to reproduce

N/A

Snack or minimal code example

Package versions

Affected platforms

github-actions[bot] commented 2 years ago

Issue validator

The issue is valid!

sercand commented 2 years ago

I have the same issue but I don't use Hermes engine

yaaliuzhipeng commented 2 years ago

the same error os: andriod 10 rn: 0.66 renimated: 2.3.0-beta.2

juancarlosqr commented 2 years ago

Having the same error:

OS: Android 10 RN: 0.66 Reanimated: 2.3.0-beta.2

Rafnexx commented 2 years ago

I can confirm that problem exists on Android.

OS: Android 11, RN: 0.66, Reanimated: 2.3.0-beta.2 Hermes: true

piaskowyk commented 2 years ago

Hey @meftunca 👋 Could you (or someone who can reproduce this issue) prepare a showcase repo to reproduce this issue? 🙏

piaskowyk commented 2 years ago

At first, I recommend clearing all application cache, for example: rm -rf ./node_modules && yarn && cd ios && pod deintegrate && pod install && cd .. && yarn start --reset-cache"

SergiOnGit commented 2 years ago

Exactly the same here. Cache resetting doesn't help.

meftunca commented 2 years ago

Hey @meftunca 👋 Could you (or someone who can reproduce this issue) prepare a showcase repo to reproduce this issue? 🙏

At first, I recommend clearing all application cache, for example: rm -rf ./node_modules && yarn && cd ios && pod deintegrate && pod install && cd .. && yarn start --reset-cache"

I already tried and got the same error

meftunca commented 2 years ago

I think the source of the problem is HERMES

meftunca commented 2 years ago

@piaskowyk Can you give an estimated date for the solution?

samrith-s commented 2 years ago

@piaskowyk I am getting this same issue, and unable to figure out why. I have a detail comment here. Been stuck with it for around 2 months.

samrith-s commented 2 years ago

Also figured by logging, global doesn't have __reanimatedModuleProxy as a property. So global.__reanimatedModuleProxy is always undefined

samrith-s commented 2 years ago

If you want a reproduction, you can check out the Reanimated2 Playground sandbox created by Software Mansion. It has the same error.

uragecz commented 2 years ago

Why this issue is closed ? I am having same problem on android on latest version of this library.. (using hermes)

MichaelDanielTom commented 2 years ago

After months of trying to figure out why, on iOS, reanimated 2.0 -2.2 was subtly not working and why 2.3 was running into this issue, I think the root problem currently is this. We had a custom RCTBridgeDelegate instead of using our AppDelegate like the template/example apps use. To fix the issue if you also have a bridge delegate, you can either:

1) Implement the requisite sourceURLForBridge method on your AppDelegate class and use your app delegate as a delegate for your bridge. 2) Make your custom RCTBridgeDelegate a subclass of UIResponder.

samrith-s commented 2 years ago

After months of trying to figure out why, on iOS, reanimated 2.0 -2.2 was subtly not working and why 2.3 was running into this issue, I think the root problem currently is this. We had a custom RCTBridgeDelegate instead of using our AppDelegate like the template/example apps use. To fix the issue if you also have a bridge delegate, you can either:

  1. Implement the requisite sourceURLForBridge method on your AppDelegate class and use your app delegate as a delegate for your bridge.
  2. Make your custom RCTBridgeDelegate a subclass of UIResponder.

This is what worked for us as well just yesterday!