CleverProgrammers / react-covid-tracker

202 stars 252 forks source link

'Map' is not exported from 'react-leaflet' (imported as 'LeafletMap'). #35

Open ramlakhan1 opened 3 years ago

ramlakhan1 commented 3 years ago

Screenshot (1)

kankipatib commented 3 years ago

Hi Iam also facing same issue

codeiotic commented 3 years ago

Duplicate of #22

nirmalyathakurta commented 3 years ago

"browserslist": [ ">0.2%", "not dead", "not op_mini all" ], copy this and paste instead of : "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] },

Then, delete the node_modeules/.cache directory. and then run npm install and npm run this will solve the problem and you can also try changing map to MapContainer

Npanda04 commented 3 years ago

facing the same issue !! suggest some straightforward solutions.

codeiotic commented 3 years ago

@Npanda04 Use MapContainer instead of Map. It is the same thing, it is just renamed in the latest versions of React Leaflet.