0
When trying to import mixin the following problem occurs
Error in render: "Typeerror: Cannot read Property 'Components' of Undefined"
But there is nothing abnormal in the Components because when taking mixin everything works normally.
methods/metodo_Div.js
export default {
methods : {
inserirDiv (event) {
let componente = new flexdiv().$mount();
this.$refs.filhosDoElemento.insertAdjacentElement('beforeend', componente.$el );
},
}
}
./App.
import { methodDiv } from './metodos/metodo_Div'
...
mixins : [methodDiv],
...
Obs. I am using Browserify.
In your code I don’t see
components
nowhere. You can show the line that has that?– Sergio
@Sergio, I’m done, thank you
– Felipe Duarte