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

136
Visualizações
importing sanityClient from client.js - Works in one place but not in another

Anyone have an idea about this.

I'm building a blog page which displays blogposts in a grid using React & Sanity & Tailwind.

One page displays the posts in a grid (Post.js) One page displays the individual posts clicked from the before mentioned grid (SinglePost.js)

both of these need to import sanityClient from "../client.js"

Post.js does this no problem and works just fine but SinglePost.js gives me an error saying:

./src/components/SinglePost.js
Attempted import error: 'sanityClient' is not exported from '../client.js'.

I don't understand how these two files pointing at exactly the same place can give completely contradictory results. One works, One says client.js isn't exporting sanityClient. Even when it definitly is.

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