Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reanimated 2.7.0 - undefined is not a function via Animated.js #3177

Closed
1 of 3 tasks
AlexanderEggers opened this issue Apr 13, 2022 · 4 comments
Closed
1 of 3 tasks
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android

Comments

@AlexanderEggers
Copy link
Contributor

Description

When updating to the latest version, the following exception is thrown:

Error: Requiring module "node_modules/react-native-reanimated/src/Animated.js", which threw an exception: TypeError: undefined is not a function, js engine: hermes

Expected behavior

No error.

Actual behavior & steps to reproduce

Error: Requiring module "node_modules/react-native-reanimated/src/Animated.js", which threw an exception: TypeError: undefined is not a function, js engine: hermes

Snack or minimal code example

Package versions

name version
react-native 0.68.0
react-native-reanimated 2.7.0
NodeJS 16.14.2
Xcode
Java 11
Gradle
expo 44

Affected platforms

  • Android
  • iOS
  • Web
@AlexanderEggers AlexanderEggers added the Needs review Issue is ready to be reviewed by a maintainer label Apr 13, 2022
@github-actions github-actions bot added Platform: Android This issue is specific to Android Missing info The user didn't precise the problem enough labels Apr 13, 2022
@github-actions
Copy link

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Snack or minimal code example section.

@github-actions
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Apr 13, 2022
@AlexanderEggers
Copy link
Contributor Author

It seems like my metro had bad caches and the app is running fine on Android now using 2.7.0.

@radko93
Copy link
Contributor

radko93 commented Apr 14, 2022

Also had this issue - make sure you run yarn start --reset-cache when updating to 2.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

2 participants