React native to Redis connection
I am trying to connect to redis server via npm redis. when creating react-native app.
I am getting
node_modules/redis/index.js: Module
net` does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following: 1. Clear watchman watches:
watchman watch-del-all
. 2. Delete thenode_modules
folder:rm -rf node_modules && npm install
. 3. Reset Metro Bundler cache:rm -rf /tmp/metro-bundler-cache-*
ornpm start -- --reset-cache
. 4. Remove haste cache:rm -rf /tmp/haste-map-react-native-packager-*
.
I wanted to know can we use normal npm modules while building react native apps ?
or
How would I connect to Redis via react-native
Comments
Post a Comment