Closed Dreampie closed 7 years ago
Come on, you can do better than that 😉. If there's a bug about using a bus, you can probably reproduce that on a jsfiddle. So, please, take some time to follow the Issue Reporting Guidelines and provide a minimal JSFiddle or Github repository containing a set of reproducible steps that can lead to the behaviour you described. Make sure to boil down the problem as much as possible. Thanks!
I don't know how to write vuex in jsfiddle,but I'll try, and my project can be run with npm install & npm run dev,it's easy
You're not passing a function to the bus.$on
. Here's your code fixed: https://jsfiddle.net/posva/d3ogn7u2/
Please, next time use the forums first 🙂
thanks, forums also 500
In my case this occured when I missed the second argument in this.$root.$emit('someEvent')
What eliminated the error is this.$root.$emit('someEvent', {});
More comprehension here - https://stackoverflow.com/a/52889101/1096194
I've met the same problem, but i didn't how to resolve it then. however, when i have seen this page, it may help me.
https://github.com/Dreampie/vuejs2-demo
error line: