Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not loading components #372

Open
paulvonber opened this issue Apr 4, 2024 · 3 comments
Open

Not loading components #372

paulvonber opened this issue Apr 4, 2024 · 3 comments

Comments

@paulvonber
Copy link

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

Screenshots
image

@RichAyotte
Copy link

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
Copy link
Author

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
Copy link

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';`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants