'Unable to resolve a dependency in react native maps?
Problem:
I have create react native application. There I am using react-native-maps. When bundle is building it laves this error on the console.
Unable to resolve "./lib/components/MapHeatmap.js" from "node_modules\react-native-maps\index.js"
I look for a solution but I was unable to do so. And I have not any clue for what should do for this error.Thank you
Solution 1:[1]
i had the same error just now, try sudo npm uninstall react-native-maps and install it again with expo comand (if you are using expo).
Solution 2:[2]
I was also facing the same issue in react native (expo)
For me clearing the cache worked...
just type this command
expo start -c
Solution 3:[3]
in cli project run this command on your project npm cache clean --force then reinstall the node module ...... then npm install
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Marko Petrovic |
| Solution 2 | Chirag Chopra |
| Solution 3 |
