Attempted import error: 'MapContainer' is not exported from 'react-leaflet'. code example
Example: Attempted import error: 'Map' is not exported from 'react-leaflet' (imported as 'LeafletMap').
import { MapContainer, TileLayer, Marker } from 'react-leaflet';
<MapContainer
className="markercluster-map"
center={[51.0, 19.0]}
zoom={4}
maxZoom={18}
>
<TileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
/>
</MapContainer>