#13684·mapbox-gl-js

Uncaught ReferenceError: __async is not defined

Author: anbaranCreated Jun 16, 2026Updated Aug 24, 2026
Labelsbug :lady_beetle:auto-triagedbundlers

mapbox-gl-js version

v3.24.1

Browser and version

No response

Expected behavior

After upgrading mapboxgl from v3.16.0 to v3.24.1 I receive the below error when my code in Angular 22 executes the line new mapboxgl.Map({ In version v3.16 the error does not occur the error is

Image

An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'

Actual behavior

No response

Link to the demonstration

No response

Steps to trigger the unexpected behavior

No response

Relevant log output

bash