Open Onixarts opened 3 years ago
Long time - no reply. I am also interested in Vue 3 support.
Ok, i found a solution.
Change in node_modules/vue-mqtt/src/Main.js
line 12 to Vue.config.globalProperties.$mqtt = observer.Mqtt;
and recompile module.
It's working now :)
that sound great, how can I recompile the module, I tried npm rebuild, but the dist didn't change.
Well, I have removed vue-mqtt and just use raw mqttjs. Works fine :).
Hi, you can streamline your Vue3 project with mqtt-vue-hook - the easy-to-use TypeScript library for MQTT broker connections and callback function management :). (https://github.com/tommy44458/mqtt-vue-hook)
Is this project still maintained? It not works with Vue 3.