Describe the bug
After updating my project from NextJS 15 to 16, the map stopped rendering.
To Reproduce
Steps to reproduce the behavior:
- Setup a NextJS 15 project wtih react-map-gl
- Start it, and see map rendering
- Update to nextJS 16
- Start it and see map not rendering.
Expected behavior
Map should render with the latest version of NextJS 16
Screenshots
Desktop (please complete the following information):
- OS: macOS 26
- Browser chrome
HTML rendered:
<div class="mapboxgl-canvas-container mapboxgl-interactive mapboxgl-touch-drag-pan mapboxgl-touch-zoom-rotate">
<canvas class="mapboxgl-canvas" tabindex="0" aria-label="Map" role="region" width="2922" height="1606" style="width: 1461px; height: 803px;"></canvas>
</div>
Nothing else changed other than the version of nextJS in package.json
Describe the bug
After updating my project from NextJS 15 to 16, the map stopped rendering.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Map should render with the latest version of NextJS 16
Screenshots
Desktop (please complete the following information):
HTML rendered:
Nothing else changed other than the version of nextJS in package.json