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

registering components #26

Open mkelley82 opened 7 years ago

mkelley82 commented 7 years ago

I did as instructed in the README and linked to the components.bundle.js and app.style.js in index.html, and then used and with the appropriate attributes set but I am getting the following errors... Is there another step I am missing with registering the components?

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

mkelley82 commented 7 years ago

Just to clarify I am using the vue-cli webpack template.

ArmCrook commented 7 years ago

I have had the same issue. Perhaps the documentation on setup/installation is lacking?

litti commented 7 years ago

You can remove the component.bundle.js link. Then you have to invoke the install routine for the component (be aware to adjust the location of the component.bundle.js):

window.Vue = require('vue');

Vue.component('vuetiful', require('./components/external/vuetiful/components.bundle.js'));

window.app = new Vue({
    el: '#app',
});

Does this help you?