question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve module `./core/AnimatedFunction` from `node_modules/react-native-reanimated/src/base.js`:

See original GitHub issue

I’m trying to generate a release from my app and got this error:

Loading dependency graph…error Unable to resolve module ./core/AnimatedFunction from node_modules/react-native-reanimated/src/base.js:

None of these files exist:

  • node_modules/react-native-reanimated/src/core/AnimatedFunction(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  • node_modules/react-native-reanimated/src/core/AnimatedFunction/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx). Run CLI with --verbose flag for more details. Error: Unable to resolve module ./core/AnimatedFunction from node_modules/react-native-reanimated/src/base.js:

Any ideas?

Already deleted node_modules and runned npm install again and tried to npm install the library from ground.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
inaki-ibarracommented, Sep 27, 2019

I checked the version in my node_modules and it’s 1.2.0 where the createAnimatedFunction is not present in /react-native-reanimated/src/base.js (This will result Unable to resolve module error). However, createAnimatedFunction is present in version 1.3.0 so I think upgrading the version will fix this.

1reaction
kk8401commented, Jan 31, 2020

So no fix to this?? This is a potential show stopper for us

Upgrading throws new warning and causes Android Build to fail.

Some of your project's dependencies are not compatible with currently installed expo package version:
 - react-native-reanimated - expected version range: ~1.2.0 - actual version installed: 1.3.0
Your project may not work correctly until you install the correct versions of the packages.
To install the correct versions of these packages, please run: expo install [package-name ...]

I had the same problem. Initially using 1.3.0 afterwards reinstall with expo install and get the same error message. Tried few times and finally expo start -c clear the error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module react-native-reanimated/src/core ...
As the error suggests react-navigation-drawer is trying to find a component which doesn't exist. Implying your versions are out of sync.
Read more >
0.62.1. error: Error: Unable to resolve module `react-native ...
Upgraded project to 0.62.1. Deleted node_modules, watchman, metro cache etc. Build completes but application fails to start with the error: error: Error: ...
Read more >
Module not found | Can not resolve module in react - YouTube
Your browser can't play this video. ... Module not found | Can not resolve module in react ... 21K views 1 year ago...
Read more >
React Native, Typescript and VS Code: Unable to resolve ...
The problem with resolving modules turned out to be related to VS Code's typescript project helper.
Read more >
Resolve | webpack
Note that this may cause module resolution to fail when using tools that symlink packages (like npm link ). webpack.config.js module.exports = {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found