building failed "Unable to resolve module `util`
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
Have you tried the steps outlined in your error message to fix this issue? This should be a react-native and no mongojs issue.
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
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