dwp
dwp

Reputation: 958

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

Upvotes: 0

Views: 4239

Answers (3)

Ahsan Raza Alvi
Ahsan Raza Alvi

Reputation: 49

in cli project run this command on your project npm cache clean --force then reinstall the node module ...... then npm install

Upvotes: 0

Chirag Chopra
Chirag Chopra

Reputation: 152

I was also facing the same issue in react native (expo)

For me clearing the cache worked... just type this command

expo start -c

Upvotes: 2

Marko Petrovic
Marko Petrovic

Reputation: 23

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

Upvotes: 2

Related Questions