When trying to import the mixin the following problem occurs
Error in render: "TypeError: Can not read property 'components' of undefined"
But there is nothing abnormal in the components because when taking the mixin everything works normally.
Methods / Method_Div.js
export default {
methods : {
inserirDiv (event) {
let componente = new flexdiv().$mount();
this.$refs.filhosDoElemento.insertAdjacentElement('beforeend', componente.$el );
},
}
}
./ App.vue
import { methodDiv } from './metodos/metodo_Div'
...
mixins : [methodDiv],
...
obs. I'm using browserify.