Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

135
Visualizações
Found non-callable @@iterator in sveltekit

Hi guys I got this error Found non-callable @@iterator on one page in my sveltekit code, everything worked before and I didn't change anything, how do I even start to debug this?

I have this code at the top of the specific page

<script context="module">
  export async function load({ fetch, page }) {
    const {p} = page.params
    const res = await fetch(`https://saffron-backend-prod-t3i75.ondigitalocean.app/api/packages/${p}`);

  if (res.ok) return { props: { packages: await res.json() } };
  return {
    status: res.status,
    error: new Error()
   };
  }
</script>

Edit: I started deleting random pieces of code and turns out it was this one

<Swiper
    loop={true}
    navigation="{true}"
    class="overflow-hidden rounded-xl w-full h-72 relative justify-center items-center object-cover"
    >
    <SwiperSlide>
        <img
            src="{p.image}"
            alt=""
            class="h-80 border border-gray-100 w-full object-cover rounded-xl group-hover:rotate-0 group-hover:transform"
        />
    </SwiperSlide>
        {#each p.pkgImages as img}
            <SwiperSlide>
                <img
                    class="h-80 border border-gray-100 w-full object-cover rounded-xl"
                    src="{img.image}"
                    alt="product"
                />
            </SwiperSlide>
        {/each}
    </Swiper>

I switched all the elements to regular divs and it works, but of course I lost all the functionality of swiper

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda