Next.js Discord

Discord Forum

Turbopack fails to load external GL style JSON (works with Webpack) — Next.js 16

Unanswered
Standard Chinchilla posted this in #help-forum
Open in Discord
Standard ChinchillaOP
Hello everyone,
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 --webpack
But when I use Turbopack, the map fails to load the style JSON:
npx next dev
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?

1 Reply

Dutch
have you checked browser console or terminal to see error