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

140
Vistas
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 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