wmfs / quasar-map-mapbox

A Quasar Map component, implemented with MapBox
MIT License
4 stars 1 forks source link

Uncaught (in promise) TypeError: this.$root.$on is not a function at Proxy.mounted #140

Open ropg opened 3 years ago

ropg commented 3 years ago

Thank you for writing quasar-map-mapbox

I created a very simple component that uses QMap:

<template>
  <q-map
    centre-latitude=52.527
    centre-longitude=13.39
    locked=false
  >
  </q-map>
</template>
<script>
import QMap from '@wmfs/quasar-map-mapbox'

export default {
  components: { QMap }
}
</script>

When I run my spa, I do see the map, and can zoom but not pan. On the browser console, I get this set of warnings and errors:

Screen Shot 2021-10-11 at 12 17 17

 

When I try Googling some of these errors, it seems to me that quasar-map-mapbox depends on Vue 2 and the Quasar I use uses Vue 3. Is this indeed the problem? Is there a new version in the works? Or is there some other component I should be using instead?

( I have experience programming in Javascript and other languages / frameworks but I am VERY new to Quasar, having literally installed it just yesterday. I apologize if this is a very basic oversight on my part. )

reecebrend commented 2 years ago

Hi @ropg

Thanks for getting in touch, apologies for the delayed response.

We've recently updated to Vue 3 so this should no longer occur. Can you let us know if this has resolved your issue?

Thanks