SSENSE/vue-carousel

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

Open

#200 opened on May 15, 2018

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (513 forks)batch import
help wantedquestion

Repository metrics

Stars
 (1,705 stars)
PR merge metrics
 (No merged PRs in 30d)

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.

Contributor guide