Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

366
Views
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 answers
Answer question

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 Report

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!