Was getting the following error messages:
[Vue warn]: Injection "eventBus" not found
[Vue warn]: $attrs is readonly.
[Vue warn]: $listeners is readonly.
Webpack Config issue:
Fix:
Add this to vue.config.js in the chainWebpack section
// before the module.exports command make sure to load path.
const path = require('path')
chainWebpack(config) {
config.resolve.alias.set(
'vue$',
path.resolve(__dirname, 'node_modules/vue/dist/vue.esm.js')
)
}
If you use webpack.config directly the format is as follows:
// note this one is untested for me. Can't confirm the path.
module.exports = {
//...
resolve: {
alias: {
'vue$': 'vue/dist/vue.runtime.esm.js'
}
}
Sharing because it may help others.
Was getting the following error messages: [Vue warn]: Injection "eventBus" not found [Vue warn]: $attrs is readonly. [Vue warn]: $listeners is readonly.
Webpack Config issue:
Fix:
Add this to vue.config.js in the chainWebpack section
If you use webpack.config directly the format is as follows:
}