Unable to resolve "./utils/batch" from "node_modules/react-redux/lib/index.js"
See original GitHub issue"dependencies": { "axios": "^0.18.0", "drawer": "0.0.2", "expo": "^32.0.6", "prop-types": "^15.7.2", "react": "^16.8.6", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz", "react-native-elements": "^1.1.0", "react-native-router-flux": "^4.0.6", "react-native-vector-icons": "^6.4.2", "react-redux": "^6.0.0", "react-saga": "^0.3.1", "react-thunk": "^1.0.0", "redux": "^4.0.1", "redux-saga": "^1.0.2" }, "devDependencies": { "babel-preset-expo": "^5.0.0", "react-native-reanimated": "^1.0.1", "schedule": "^0.4.0" },
This is my package dependencies but don’t know why this message still appears, I spend 2 days trying to resolve it.
I deleted node_models folder, I uninstalled redux using npm uninstall, I re-installed every thing from scratch, I trying multiple version of react and redux but nothing.
Unable to resolve “./utils/batch” from “node_modules/react-redux/lib/index.js”
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Appreciate the quick response! You were right about the mismatch. I was getting this issue with Expo caching different versions of
react-redux
. For others facing this with Expo, resetting the cache withexpo r -c
seemed to do it.it finally worked thank you
delete node_modules folder
package.json :
"react": "16.8.3", "react-native": "0.59.2", "react-redux": "6.0.1"
npm install
live the
node_modules\react-native\scripts\launchPackager.bat
as it withnode "%~dp0..\cli.js" start
change
@react-native-community\cli\build\commands\runAndroid\runAndroid.js
:const procConfig = { cwd: process.cwd() }
npm cache clean --force
npm start --clear-cache
react-native start --reset-cache
AND THIS STEP I DIDNT DONE BEFOREdelete
C:\Users\YOURUSERNAME\AppData\Local\Temp\metro-cache