Answer the question
In order to leave comments, you need to log in
Laravel mix + vue how to compile installed component template?
After adding new plugin to vue app
<autosize-textarea value="default value"></autosize-textarea>
[Vue warn]: Failed to mount component: template or render function not defined.
module.exports = {
resolve: {
alias: {
'vue$': 'vue/dist/vue.common.js'
}
}
}
Answer the question
In order to leave comments, you need to log in
Module connection example
import Vue from 'vue'
import autosizeTextarea from 'vue-autosize-textarea'
new Vue({
el: '#app',
methods: {
onResized () {
console.log('resized!')
}
},
components: {
'autosize-textarea': autosizeTextarea //!!!
}
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question