SSENSE/vue-carousel

Question: With MeteorJS - Plugin/Preset files are not allowed to export objects, only functions.

Open

#200 ouverte le 15 mai 2018

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)JavaScript (1 705 stars) (513 forks)batch import
help wantedquestion

Description

Love this library, thanks a lot for the great quality!

I got a problem when HRM is hot reloading my app after I make a change. Im getting the following:

HRM node_modules/vue-carousel/src/Carousel.vue:29  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4
HRM node_modules/vue-carousel/src/Navigation.vue:23  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4
HRM node_modules/vue-carousel/src/Pagination.vue:33  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4
HRM node_modules/vue-carousel/src/Slide.vue:13  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4
HRM node_modules/vue-carousel/src/Carousel.vue:29  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4
HRM node_modules/vue-carousel/src/Navigation.vue:23  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4
HRM node_modules/vue-carousel/src/Pagination.vue:33  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4
HRM node_modules/vue-carousel/src/Slide.vue:13  [vue-component] Error while compiling in tag <script>: Plugin/Preset files are not allowed to export objects, only functions.
dev-client.js:227:4

Any idea what I'm doing wrong here? I could share my component also if that helps and maybe my package.js file. Im on 0.7.3 of vue-carousel.

Everything works perfectly well otherwise, just anoying to get these error messages in the console in Chrome.

Guide contributeur