Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

648
Vistas
Nextjs: Warning: Prop `src` did not match

This is my code:

<img src={"/upload/images/"+Currency.getCurrent()+".svg"} />

And this my function:

static getCurrent() {
    var currency = "usd"
    const cookies = parseCookies()
    if (cookies.currency) {
        currency = cookies.currency
    }
    return currency
}

I get this error:

next-dev.js?3515:32 Warning: Prop `src` did not match. Server: "/upload/images/usd.svg" Client: "/upload/images/btc.svg"

So, usd.svg and btc.svg are exists.

For usd I dont have any error, but for btc I get error.

Note: This code return true url:

console.log(Currency.getCurrent()) // /upload/images/btc.svg
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda