You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the Error: Uncaught SyntaxError: The requested module '/node_modules/mapbox-gl/dist/mapbox-gl.js?v=70a96ba5' does not provide an export named 'default' (at VMapbox.vue:15:1)
I had to change the mapbox import from: import mapboxgl from 'mapbox-gl'
to import mapboxgl from 'mapbox-gl/dist/mapbox-gl-csp';
Is the error my fault or is the import outdated?
Im using vite with vue@2.6.10 and the latest mapbox version.
The text was updated successfully, but these errors were encountered:
I got the Error:
Uncaught SyntaxError: The requested module '/node_modules/mapbox-gl/dist/mapbox-gl.js?v=70a96ba5' does not provide an export named 'default' (at VMapbox.vue:15:1)
I had to change the mapbox import from:
import mapboxgl from 'mapbox-gl'
to
import mapboxgl from 'mapbox-gl/dist/mapbox-gl-csp';
Is the error my fault or is the import outdated?
Im using vite with vue@2.6.10 and the latest mapbox version.
The text was updated successfully, but these errors were encountered: