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

Error: Unable to resolve module util from /node_modules/multiparty/index.js: Module does not exist in the module map #8

Open
omars94 opened this issue May 11, 2018 · 4 comments

Comments

@omars94
Copy link
Owner

omars94 commented May 11, 2018

bundling failed: Error: Unable to resolve module util from /home/omars/react-native-projects/react-native-firebase-starter/node_modules/multiparty/index.js: Module does not exist in the module map

This might be related to facebook/react-native#4968
To resolve try the following:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -rf $TMPDIR/react-* or npm start -- --reset-cache. 4. Remove haste cache: rm -rf $TMPDIR/haste-map-react-native-packager-*.
    at UnableToResolveError (/home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:772:5)
    at ModuleResolver.resolveDependency (/home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:311:1719)
    at ResolutionRequest.resolveDependency (/home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:96:16)
    at DependencyGraph.resolveDependency (/home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/node-haste/DependencyGraph.js:269:4352)
    at /home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/DeltaBundler/traverseDependencies.js:201:36
    at next (native)
    at step (/home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:306)
    at /home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:536
    at /home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:217
    at addDependency (/home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:92)
    at /home/omars/react-native-projects/react-native-firebase-starter/node_modules/metro/src/DeltaBundler/traverseDependencies.js:237:9
@C2P1
Copy link

C2P1 commented May 18, 2018

Hi @omars94 ,

I'm having the same problem right now. Did you find a solution to this?

Thanks!

@omars94
Copy link
Owner Author

omars94 commented May 20, 2018

Hi @C2P1 ,

I solved it by going back in my commits , i had an error that was import form from multiparty and not from native base and that was caused from auto import script

@omars94
Copy link
Owner Author

omars94 commented May 20, 2018

@C2P1 if you want i can view your code and search for errors

@C2P1
Copy link

C2P1 commented May 21, 2018

Hi @omars94 ,

Thanks for offering to view my code, I have however fixed the issue by updating all dependencies. My issue was caused by a problem in one of the versions of a dependency I was using, the author of which has now rolled back that change.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants