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

367
Visualizações
Why I get this in Next.js? <link rel=preload> has an invalid `imagesrcset` value

I have images in a carousel:

<Image
  src={`http://ticket-t01.s3.eu-central-1.amazonaws.com/${props[organizationId].events[programId].imgId}_0.cover.jpg`}
  className={styles.carouselImage}
  layout="responsive"
  width={865}
  height={513}
  key={`${props[organizationId].events[programId].imgId}`}
  priority={true}
/>

I think all src are set well, as images are visible, rendered. Then what is the problem?

I see this in console:

has an invalid `imagesrcset` value
about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

A bug has been filed with Safari which seems to be the only browser complaining.

I think you can safely ignore this error.

about 4 years ago · Juan Pablo Isaza Relatório

0

you should add this to your next.config.js file

module.exports = {
  images: {
    domains: ["amazonaws.com"],
  },
}

from the docs :

To enable Image Optimization for images hosted on an external website, use an absolute url for the Image src and specify which domains are allowed to be optimized. This is needed to ensure that external urls can't be abused.

about 4 years ago · Juan Pablo Isaza Relatório

0

if its a local image you need to import it, and then use it

import dogImg from '../public/dog1.png'

<div>
<Image src={dogImg} />
</div>
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