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

390
Vistas
Objects are not valid as a React child Error in next js

I use the latest version next js inside my project. Recently I faced objects not valid as a react js child error.

object are not valid as a react js child

First import Head components are next js, and after I use SEO schema structure in the project, I face an error. Please guide me on how to resolve this issue. I also use {} in a script tag inside and outside, but not working for me.

 <Head>
  <title>Random color project </title>
        <meta
    name="description"
    content="Random Color tool help to genrate random color base on your click. every time when you click on button random color genrate a color  "
  />
 {/* rest code  */}

  {/* SEO Schema  structure code for search egine  */}  
  <script  type="application/ld+json">
    {

      "@context": "https://schema.org",
      "@type": "WebSite",
      image: ["https://avatars2.githubusercontent.com/u/32416397"],
      author: {
        "@type": "Person",
        name: "Rajdeep Singh"
      },
      ....
    }

  </script>

</Head>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try below instead of your script with the object.

<script type='application/ld+json' dangerouslySetInnerHTML={ { __html: `{

      "@context": "https://schema.org",
      "@type": "WebSite",
      image: ["https://avatars2.githubusercontent.com/u/32416397"],
      author: {
        "@type": "Person",
        name: "Rajdeep Singh"
      },
      ....
    }`}} 
/>
about 4 years ago · Juan Pablo Isaza Denunciar
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