Skip to content

react-map-gl stopped rendering after NextJS 16 update. #598

Description

@MarkLyck

Describe the bug
After updating my project from NextJS 15 to 16, the map stopped rendering.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a NextJS 15 project wtih react-map-gl
  2. Start it, and see map rendering
  3. Update to nextJS 16
  4. Start it and see map not rendering.

Expected behavior
Map should render with the latest version of NextJS 16

Screenshots

Image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions