antoniandre / vueper-slides

A touch ready and responsive slideshow / carousel for Vue 2 & 3.
https://antoniandre.github.io/vueper-slides
MIT License
566 stars 50 forks source link

Vueperslides in Astro Build issue #186

Open midlantica opened 2 years ago

midlantica commented 2 years ago

`> npm run build

@example/basics@0.0.1 build astro build

11:44:45 PM [build] output target: static 11:44:45 PM [build] Collecting build info... 11:44:45 PM [build] Completed in 577ms. 11:44:45 PM [build] Building static entrypoints... 11:44:48 PM [build] Completed in 3.00s.

building client Completed in 1.02s.

generating static routes error Named export 'VueperSlide' not found. The requested module 'vueperslides' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:

import pkg from 'vueperslides'; const { VueperSlides, VueperSlide } = pkg;

**/dist/entry.mjs?time=1662266689397:4 / empty css */import { VueperSlides, VueperSlide } from 'vueperslides'; ^^^^^^^^^^^ SyntaxError: Named export 'VueperSlide' not found. The requested module 'vueperslides' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:

import pkg from 'vueperslides'; const { VueperSlides, VueperSlide } = pkg;

midlantica commented 2 years ago

Vueperslides is great. All is well in npm run dev. But when I run npm run build in Astro it fails.

https://github.com/midlantica/rogerivens.com