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

168
Visualizações
Use Svelte with Stencil components

we want to build an application with svelte but are stuck at using our components that we built with stenciljs. At first it looked like it worked like a charm but as stencil components use the term "slot" and svelte does too, i am reveiving an error when using this component on svelte

Element with a slot='...' attribute must be a child of a component or a descendant of a custom element

. I understand this issue, the question is how to ignore it or to tell svelte to ignore certain elements. Is there a function for that?

The component i try to use looks like that:

<my-ui-image
  slot="image"
  src="/images/image.png"
  shadow-on-image="false"
  alt="image alt"
  title="Image title"
/>
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

check this post for named slots -> How to get the slots value in a Svelte component? I hope it gives you direction..

about 4 years ago · Juan Pablo Isaza Relatório

0

So i tried this again and the issue is gone.

about 4 years ago · Juan Pablo Isaza Relatório
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