andrewcourtice / vuetiful

Vuetiful is a component framework written on top of the Vue reactive library. It is primarily designed for creating business/administration applications where the displaying of data is paramount.
MIT License
488 stars 108 forks source link

Failed to mount component #37

Closed rami8k closed 7 years ago

rami8k commented 7 years ago

Hi,

I'm using vue cli as my template, I installed vuetiful using npm. I ran through multiple issues to make this work but now I have a new error:

app.js:1571 [Vue warn]: Failed to mount component: template or render function not defined. found in --->

I have vue resolved in my webpack config to use Runtime+Compiler and didn't work, i also tried to change it in the node_module and no luck resolve: { alias: { "vue$": 'vue/dist/vue.esm.js', } }

my component is attached Hello.txt

Thank you

rami8k commented 7 years ago

I fixed it using the following in the main.js

import Vuetiful from 'vuetiful/src/main.js' Vue.use(Vuetiful)

now I can use the datatable in my views