-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Core Version & Element Modules - unable to inject module style urls #7485
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
Comments
You need correct paths for styles |
@nolimits4web i used the path you provide in the documentation for the element modules. And also when looking at your package.json exports i am using the correct paths. So please instead of just closing the issue, please help! Because with the path provided by your documentation and your package.json exports it is not working. So what exactly are the correct paths to your module styles? |
@nolimits4web first of all, thanks for creating the wonderful library. In a project, we're trying to migrate from Swiper React to Elements, and I second @awacode21 comments, the documentation does not provide enough clarity on what to do. My code is almost exactly as documented here but this part of the documentation is a bit vague:
Thanks for the response. |
Check that this is really a bug
Reproduction link
https://stackblitz.com/edit/swiper-element-module-styles?file=app.vue,components%2FBaseImageSlider.vue
Bug description
I am using Swiper element (web component) version as described here: https://swiperjs.com/element
I would like to use Core module + modules to only add the modules i really use. For performance reasons.
So i tried to follow the instructions here: https://swiperjs.com/element
Regarding the docs these module style url injects should be possible:
But it does not work. No matter which export urls i try. it does not get applied.
Expected Behavior
Style url inject of the module styles should work
Actual Behavior
Not working. No styles applied
Swiper version
11.1.1
Platform/Target and Browser Versions
macOS Google Chrome Version 123.0.6312.107 (Offizieller Build) (arm64)
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: