ismail9k / vue3-carousel

Vue 3 carousel component
https://ismail9k.github.io/vue3-carousel/
MIT License
653 stars 162 forks source link

Not loading components #372

Open paulvonber opened 1 month ago

paulvonber commented 1 month ago

Describe the bug After update to 0.3.3 doesn't load components anymore

Screenshots image

RichAyotte commented 4 weeks ago

package.json contains

  "main": "dist/carousel.js",
  "module": "dist/carousel.es.js",

If you're using Nuxt, it prefers the value in main.

Temp workaround is to specify the full path of the module.

import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel/dist/carousel.es.js'
paulvonber commented 4 weeks ago

If you're using Nuxt, it prefers the value in main.

Temp workaround is to specify the full path of the module.


import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel/dist/carousel.es.js'

Yeah that's what I did. Thanks anyway!

Darkside73 commented 3 weeks ago

There is a problem if use it in Typescript:

Could not find a declaration file for module 'vue3-carousel/dist/carousel.es.js'. 'node_modules/vue3-carousel/dist/carousel.es.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/vue3-carousel` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue3-carousel/dist/carousel.es.js';`