fengyuanchen / vue-carousel

Carousel component for Vue.js.
https://fengyuanchen.github.io/vue-carousel/
MIT License
188 stars 34 forks source link

Use in one component only #15

Closed erikaraujo closed 5 years ago

erikaraujo commented 5 years ago

Is it possible to use it in one component only?

If, inside my component, I import VueCarousel from '@chenfengyuan/vue-carousel' and use the component <VueCarousel /> inside my component I get a console warn and nothing happens.

The console warn is:

[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

Thank you.

fengyuanchen commented 5 years ago

Explanation of Different Builds of Vue.js.

fengyuanchen commented 5 years ago

In short:

import Vue from 'vue/dist/vue.esm.js'; // not 'vue.runtime.js'