Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapBox does not provide an export named 'default' #38

Open
SilvanFux opened this issue Apr 12, 2022 · 1 comment
Open

MapBox does not provide an export named 'default' #38

SilvanFux opened this issue Apr 12, 2022 · 1 comment

Comments

@SilvanFux
Copy link

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.

@SiggyF
Copy link
Collaborator

SiggyF commented Nov 6, 2022

I did not see this error, also not with updated versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants