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

Swiper not being loaded becasue of it's MIME type #118

Open
Xyeut opened this issue Feb 18, 2024 · 0 comments
Open

Swiper not being loaded becasue of it's MIME type #118

Xyeut opened this issue Feb 18, 2024 · 0 comments

Comments

@Xyeut
Copy link

Xyeut commented Feb 18, 2024

Hey! I'm working with the latest version of both nuxt and nuxt-swiper, I'm encontering an issue, when I'm testing my site on firefox I get the error:
image

I've tried everything, however there's nothing specifc about this issue. I do notice that it works fine in chrome, and edge, however it's just firefox that's really getting this issue so far.

This is my swiper code:

                <Swiper :modules="[SwiperPagination, SwiperNavigation, SwiperAutoplay]" :loop="true"
                    :navigation="{ 'enabled': true, 'nextEl': '.testimonials__next', prevEl: '.testimonials__back' }"
                    :pagination="{
                        'enabled': true,
                        'el': '.testimonials__pagination'
                    }" :autoplay="{
    disableOnInteraction: false,
    delay: 3000
}" space-between="100px">
                    <SwiperSlide v-for=" testimonial  in  testimonials ">
                        <div class="card testimonial__card">
                            <p>{{ testimonial.message }}</p>

                            <div class="card__extra">
                                <div class="user">
                                    <h4>{{ testimonial.name }}</h4>
                                    <span> {{ testimonial.type }}</span>
                                </div>

                                <div class="stars">
                                    <NuxtImg v-for=" _  in  [...Array(5).keys()] " src="/svgs/star-filled.svg" width="24px"
                                        height="24px" />
                                </div>
                            </div>

                        </div>

                    </SwiperSlide>

and my config:

swiper: {
    modules: ["pagination", "navigation", "autoplay"],
  },

This is my result in chrome:
https://i.imgur.com/fKlfCbS.gif

Compared to firefox:
https://i.imgur.com/bRR8U6t.gif

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

1 participant