BobSty
Event is triggered twice
I have a eventBus.js class which looks like this:
I also have the parent vue component from where I trigger the event, it looks like this:
And I have the child vue component where I listen to the event:
So far so good, but the event is always triggered twice for some reason. I checked the Function which is emitting the event, the function is only called once.
But for some reason
eventBus.$on(...)
is always called twice, no matter how often I reload or navigate through pages.
Does anyone know why this is happening?2 replies
Auth with Discord
So im trying to set up auth for discord but as soon as I add the modules
'@nuxtjs/axios'
and '@nuxtjs/auth-next'
into my nuxt.config.ts
this error occurs Cannot read properties of undefined (reading 'options')
on npm install
nuxt.config.ts
I've read somewhere that modules work different in nuxt v3 but I somehow cant figure it out.
I have following packages:
Does anyone have a example by chance on how to do it the right way?5 replies