Unable to resolve module `lodash.isstring` from `/[...]/node_modules/react-native-vector-icons/lib/icon-button.js`: Module `lodash.isstring` does not exist in the Haste module map
See original GitHub issue- Review the documentation: https://github.com/oblador/react-native-vector-icons
- Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues
macOS Big Sur Version 11.0.1 (And catalina before this) Target platform is iPhone 11 iOS 14.2 (Though error appears on every other one I’ve tried)
“react-native-vector-icons”: “^7.1.0”, And also “react-native-vector-icons”: “oblador/react-native-vector-icons”, which is what the current app I am meant to be working on is using, but I changed it to use the specified version because I thought that might be the cause. Same problem with both.
RN version 0.60.0 for the existing app I initially tried to get working, and “react-native”: “~0.63.3”, for the dummy project I created to test the library alone
Description
I originally cloned the git repo for a working app that I am meant to be working on, did npm i && npx pod-install ios and encountered the error below. Then I created a fresh standalone project, made sure it worked without the library then added plus npm/pod install.
When trying to run react-native run-ios or running it from XCode I get this error:
Unable to resolve module lodash.isstring
from /[...]/node_modules/react-native-vector-icons/lib/icon-button.js
: Module lodash.isstring
does not exist in the Haste module map
I’ve tried installing lodash globally, to no effect, and changing the package.json entry as noted earlier. I’m new to RN so I’m not really sure where to go from here. Any help would be appreciated, thanks.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7
Top GitHub Comments
I have the same issue. I fixed it by the following –
npm install lodash --save
expo start --clear
Thanks.
Sorry I didn’t see this earlier. Unfortunately I had to go in a different direction as I could not get past this issue.