vue-leaflet/Vue2Leaflet

Error using map inside a component that extends Mixin

lucabecchetti opened this issue · 2 comments

I have a component that extend Mixin from external library, and I got this error:

marker-field:50039 TypeError: Cannot read property 'addLayer' of null
    at VueComponent.mounted (marker-field:69199)
    at invokeWithErrorHandling (marker-field:50005)

If I remove Mix and use extend Vue, works, any idea? Thanks!

mikeu commented

Hi @lucabecchetti , something like this is going to be very difficult to debug if we don't know what the component looks like, which mixin it extends, which external library it is referencing, how that relates to Vue2Leaflet, or when during execution the error occurs.

Are you able to provide a minimal working example on e.g. codesandbox or jsfiddle, demoing the error?

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.