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

160
Vistas
I get an error with TypeScript react after running, while on other devices it can, only on my mac

I get an error with typescript after running, while on other devices it can, only on my mac. Am I missing something or the version difference? I'm so confused please help me

Failed to compile

/Users/tq-web/src/hooks/useRequest/useRequest.ts
TypeScript error in /Users/tq-web/src/hooks/useRequest/useRequest.ts(24,47):
Type 'unknown' is not assignable to type 'null'.  TS2322

    22 |       setState({ status: RequestStatus.COMPLETED, error: null, data })
    23 |     } catch (error) {
  > 24 |       setState({ status: RequestStatus.ERROR, error: error, data: null })
       |                                               ^
    25 |     }
    26 |   }
    27 |
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