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 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

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
sushil50889commented, Apr 9, 2021

I have the same issue. I fixed it by the following –

  1. Re-Install the module by : npm install lodash --save
  2. And run expo by : expo start --clear

Thanks.

1reaction
newalias34commented, Jan 24, 2021

@newalias34 any update?

Sorry I didn’t see this earlier. Unfortunately I had to go in a different direction as I could not get past this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-vector-icons - Bountysource
Unable to resolve module `lodash.isstring` from `/[. ... Module `lodash.isstring` does not exist in the Haste module map.
Read more >
cannot find module "lodash" - node.js - Stack Overflow
The save command will add the installed module to the project dependencies. If the package.json file exists, and if it contains the lodash...
Read more >
Cannot find module 'lodash' error | bobbyhadz
Open your terminal in your project's root directory (where your package.json file is located) and run the following command. shell.
Read more >
Cannot find module 'lodash' error [Solved] - Reactgo
The “Cannot find module 'lodash'” error occurs due to one of the following reasons: The module is not installed in the correct project…...
Read more >
lodash-es - npm
Lodash exported as ES modules. ... your project by running `npm i lodash-es`. There are 6588 other projects in the npm registry using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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