question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

31reactions
ealemda2commented, Apr 30, 2019

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 with expo r -c seemed to do it.

3reactions
alainibcommented, Apr 26, 2019

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 with node "%~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 BEFORE

  • delete C:\Users\YOURUSERNAME\AppData\Local\Temp\metro-cache

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 Answers - 2 - Stack Overflow
Unable to resolve "./utils/batch" from "node_modules\react-redux\lib\index.js" · Subscribe to RSS.
Read more >
Issues - GitHub
utils /batch` from `...node_modules\react-redux\lib\index.js`: The module ` ... Error: Unable to resolve module . ... as it with node "%~dp0.
Read more >
[Solved]-Unable to resolve "./utils/batch" from "node_modules ...
Coding example for the question Unable to resolve "./utils/batch" from "node_modules\react-redux\lib\index.js"-Reactjs.
Read more >
"The NPM script 'start' exited without indicating that the create ...
I have the react-script dependency and react-script.js folder in node-modules. I've tried your package.json file, run npm install and I still ...
Read more >
Npm install command failing with message "could not find ...
I was following the project setup. When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found