You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@joaoVictorDeAndrade@acovrig Are you using Nuxt or just Vue? Have you found a solution yet? ActionCableVue sets a Vue globalProperty for $scable, so you should be able to do this.$cable.
Has anyone figured out how to run this in Vue3 with composition API? Is there a composable that can be imported or something similar? The readme still seems out of date.
Describe the bug
When trying the vue3 example in the Readme:
I get
ReferenceError: defineComponent is not defined
, so if I change the first line to:import { onMounted, defineComponent } from 'vue';
I then get
Cannot read properties of undefined (reading '$cable')
.I was able to get it to work using this:
Am I missing something or should the Readme be updated?
Plugin version (please complete the following information):
The text was updated successfully, but these errors were encountered: