error: bundling failed: Error: Unable to resolve module `./animations`
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:2
- Comments:14 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this command fixed my issue
npm start -- --reset-cache
could you try resetting the server cache?
npm run start -- --reset cache