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

Import for element not pointing to the right file in docs website #314

Open
iplanwebsites opened this issue Mar 17, 2023 · 2 comments
Open

Comments

@iplanwebsites
Copy link

The example code don't work on https://swiperjs.com/element

It should be

// import function to register Swiper custom elements
import { register } from "swiper/element/swiper-element.js";
// register Swiper custom elements
register();

Instead of

// import function to register Swiper custom elements
import { register } from 'swiper/element/bundle';
// register Swiper custom elements
register();
@sealove20
Copy link

hi, it works for you? just change this path?

@iplanwebsites
Copy link
Author

@sealove20 Yes, just imported the other module and everything works as expected. I assume things changes in between version and documentation didn't get updated

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

2 participants