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.

error: bundling failed: Error: Unable to resolve module `./animations`

See original GitHub issue

I upgraded my react-native-modal from 7.0.2 to 9.0.0, then encountered this error:

The module ./animations could not be found from /home/dell/Projects/javascript-projects/dora3_mobile/node_modules/react-native-modal/src/index.js. Indeed, none of these files exist:

  • /home/dell/Projects/javascript-projects/dora3_mobile/node_modules/react-native-modal/src/animations(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  • /home/dell/Projects/javascript-projects/dora3_mobile/node_modules/react-native-modal/src/animations/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx) at ModuleResolver.resolveDependency (/home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:120:15) at ResolutionRequest.resolveDependency (/home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:49:18) at DependencyGraph.resolveDependency (/home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/node-haste/DependencyGraph.js:218:16) at Object.resolve (/home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/lib/transformHelpers.js:141:30) at dependencies.map.result (/home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/DeltaBundler/traverseDependencies.js:373:31) at Array.map (<anonymous>) at resolveDependencies (/home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/DeltaBundler/traverseDependencies.js:369:18) at /home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/DeltaBundler/traverseDependencies.js:188:33 at Generator.next (<anonymous>) at step (/home/dell/Projects/javascript-projects/dora3_mobile/node_modules/metro/src/DeltaBundler/traverseDependencies.js:298:30)

I uninstalled react-native-modal and installed again. What might be the cause?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

28reactions
eggybotcommented, Mar 1, 2019

this command fixed my issue npm start -- --reset-cache

9reactions
mmazzarolocommented, Feb 28, 2019

could you try resetting the server cache? npm run start -- --reset cache

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
I upgraded my react-native-modal from 7.0.2 to 9.0.0, then encountered this error: The module ./animations could not be found from ...
Read more >
Unable to resolve module `react-native-reanimated`
The following error occure on node terminal. React-tab-navigation throwing the following error. error: bundling failed: Error: Unable to resolve ...
Read more >
Error: Unable to resolve module `react-native - bundling failed
Error : bundling failed: Error: Unable to resolve module `react-native. I updated all my dependencies to use hooks in React Native. They are:...
Read more >
Unable to resolve module `react-native-reanimated` - You.com
I'm using react-native 0.67 version. I follow the following step to fix it. step 1. npm i react-native-reanimated. step 2. add plugin babel.config.js....
Read more >
Error: Unable to resolve module `util` – Split Help Center
Running bundle using React Native and Javascript SDK causes an error. Bundling failed: Error: Unable to resolve module `util`.
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