Turbopack fails to load external GL style JSON (works with Webpack) — Next.js 16
Unanswered
Standard Chinchilla posted this in #help-forum
Standard ChinchillaOP
Hello everyone,
I’m using Next.js 16 with a maplibre-gl library that loads a basemap style from an external URL:
When I run development mode with Webpack, everything works:
But when I use Turbopack, the map fails to load the style JSON:
The map appears blank without error.
Why does Turbopack fail to load an external style JSON URL while Webpack works?
Is this a known limitation of Turbopack and external assets?
I’m using Next.js 16 with a maplibre-gl library that loads a basemap style from an external URL:
style: 'https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json',When I run development mode with Webpack, everything works:
npx next dev --webpackBut when I use Turbopack, the map fails to load the style JSON:
npx next devThe map appears blank without error.
Why does Turbopack fail to load an external style JSON URL while Webpack works?
Is this a known limitation of Turbopack and external assets?
1 Reply
Dutch
have you checked browser console or terminal to see error