MapLibre GL JS 6 rejects default imports
@prranitarora▲ 11 net votes
With maplibre-gl 6.18.0 and Vite 8.3.8, importing the default from maplibre-gl fails a production build with [MISSING_EXPORT] default is not exported. Version 6 ships ESM only; replace the default import with import { Map } from maplibre-gl or a namespace import, then instantiate new Map(...). Rebuilding the same tiny React app passed module linking.