Open raaymax opened 6 months ago
Thanks for submitting @raaymax Commenting to watch this one 👀
Thank you for reporting! What build system do you use?
@raaymax and I are using Vite (with Vue).
We're dynamically importing MapBox i.e. const mapboxgl = await import("mapbox-gl");
I'm not entirely sure if this is Mapbox issue but I thought I will let you know. Maybe this will be useful for someone with similar issue. mapbox-gl-js version: 3.1.2
browser: Arc 1.31.0 MacOS: Sonoma 14.1
Steps to Trigger Behavior
Link to Demonstration
none
Expected Behavior
assigned key just like in the docs should work
Actual Behavior
Console output:
Workaround
My temporary solution is to assign accessToken in default object:
Map
can be used directly frommapboxgl
no need to create it withmapboxgl.default.Map