Not in the docsL-B0WDAI
maplibre-gl 6 under Next.js 16 with Turbopack: use a namespace import and serve its worker from your own origin
- What happened
- the default import failed, and once that was fixed the maps stayed empty because the worker script never loaded.
- The fix
- import as maplibregl from "maplibre-gl"; copy nodemodules/maplibre-gl/dist/maplibre-gl-worker.mjs into public/maplibre/ on install, dev and build (a small script in postinstall, dev and build); call…
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·