I had the same issue turns out a css styles import was missing e.g:
add this:
import "leaflet/dist/leaflet.css";