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

building failed "Unable to resolve module util #340

Open
mbbarrry opened this issue Nov 21, 2017 · 3 comments
Open

building failed "Unable to resolve module util #340

mbbarrry opened this issue Nov 21, 2017 · 3 comments

Comments

@mbbarrry
Copy link

I am trying use this in my project but after i finished installing using this command npm install mongojs then i code in this in the app var mongojs=require('mongojs'); etc... i ran the app i got this error
bundling failed: "Unable to resolve module util from C:\\Users\\Barry\\Desktop\\TaxiMoto\\node_modules\\mongojs\\lib\\database.js: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache."

so if you seem to know what is wrong please help
for you information
envireoment
node:v6.11.2
react-native: 0.47.2
react: 16.0.0-alpha.12
android api 23
Os: windows 10

@saintedlama
Copy link
Collaborator

Have you tried the steps outlined in your error message to fix this issue? This should be a react-native and no mongojs issue.

@mbbarrry
Copy link
Author

I did follow but no fix
I thought mongojs is going to work but it didn't and I have no idea why it didn't work with this react-native.
I want to use it to save and retrieved data using the mlab cloud. since it is not working would you suggest me some other ways to get this done. Thank you

@diamedi
Copy link

diamedi commented Nov 24, 2017

Hey,

I tried to use npm install util
After I tried to run I had install events
After I tried again to run I had to install crypto and that didn't work out...

How about taking a look at
http://docs.mlab.com
Maybe that will help out

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

3 participants