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

199
Visualizações
issue of undefined in typescript (intermediate value)

having this issue that crash my app right away, i don't know what is wrong with it?,

while i was doing useQuery nromally i didn't had that prob, but now i need the getServerSideProps as i need to passs informations down 3 components .... and got this undefined. in jsx it will work, but typescript is not happ with it

export default function Home({ data }):JSX.Element {
  return (
    <div>
      <div className="flex flex-col  bg-gray-800 w-full items-center pb-10 ">
        <div className="flex flex-col max-w-screen-xl w-full ">
          <div className="flex flex-col text-white  w-full p-10 ">
            <div className="flex justify-between gap-10  ">
              <h1 className=" uppercase font-medium">
                <b>muhammad ali </b>
                vs
                <b> joe frazier</b>
              </h1>
              <p>New York, 1971 | 48:38</p>
            </div>
            <div className="w-full ">
              <HomeVideo />
            </div>
          </div>
        </div>
      
    </div>
  );
}

export async function getServerSideProps() {
  const { loading, error, data } = await client.query({
    query: GET_ALL_VIDEOS,
  });
  return {
    props: {
      loading: loading,
      error: error || null,
      data: data,
    },
  };
}

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