rn update from 0.44 to 0.49 error: Unable to resolve module 'uuid' from ..
See original GitHub issueIs this a bug report?
YES (write your answer here) When I upgrade rn from 0.44.0 to 0.49.3. got error:Unable to resolve module ‘uuid’ from ‘…node_modules/react-native/Libraries/Blob/Blob.js’:Mudule does not exist in the module map
Have you read the Contributing Guidelines?
(Write your answer here.)
Environment
Environment: OS: macOS Sierra 10.12.6 Node: 8.5.0 Yarn: Not Found npm: 4.2.0 Watchman: 4.7.0 Xcode: Xcode 9.0 Build version 9A235 Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed) react: 16.0.0-alpha.6 => 16.0.0-alpha.6 react-native: 0.49.3 => 0.49.3
Steps to Reproduce
(Write your steps here:)
1.Xcode run 2. Simulator show the error 3.
Expected Behavior
(Write what you thought would happen.) Can run correctly.
Actual Behavior
(Write what happened. Add screenshots!)
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:12 (3 by maintainers)
I am having the same issue and none of the options work Unable to resolve module
uuid
from/Users/pranav.dixit/react_navtive_projects/AppUpdate/node_modules/react-native/Libraries/Blob/Blob.js
: Module does not exist in the module mapThis might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
watchman watch-del-all
.node_modules
folder:rm -rf node_modules && npm install
.rm -rf $TMPDIR/react-*
ornpm start -- --reset-cache
. 4. Remove haste cache:rm -rf $TMPDIR/haste-map-react-native-packager-*
.Hi! I am experiencing the same issue. When I run npm install, uuid dependency is not found. Using yarn instead of npm is solving this issue. My assumption is that yarn places uuid as a shared dependency at the top of the dependency tree and npm does not do it. If uuid module is used in the blob library, it should b explicitly added to React dependencies.
Environment: OS: macOS Sierra 10.12.6 Node: 8.7.0 Yarn: 1.2.1 npm: 5.5.1 Watchman: 4.9.0 Xcode: Xcode 9.0.1 Build version 9A1004 Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed) react: 16.0.0-alpha.12 => 16.0.0-alpha.12 react-native: 0.48.4 => 0.48.4
Steps to Reproduce