-
Notifications
You must be signed in to change notification settings - Fork 108
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
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Default') #371
Comments
Same issue, with very similar dependencies & minimal map setup.
Did you find anything about this error? |
@sstainba I found out that this problem was here recently https://github.com/vue-leaflet/vue-leaflet/issues/278 I also found out that as a temporary fix, it works for me when initializing vue, to import: OR Adding directly in the map |
Thanks. I'll give that a shot. |
Sure, actually, it works only with But also there can be potential issues, because it imports the entire Leaflet library into application, thus, increase the size of application's bundle and potentially its memory consumption & build time, anyway, the trade-off is generally favorable because I found that the leaflet is relatively lightweight, especially when compared to some other mapping libraries, the minified version of Leaflet's JavaScript file (leaflet.js) is around 39 KB gzipped. |
Thanks. This is working for me now. Though, I'd prefer not to deal with workarounds. :-) I'm several months out from deployment so hopefully this will get corrected by then. |
Getting this exception with a minimally configured map.
Packages:
markup:
The text was updated successfully, but these errors were encountered: