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

389
Vistas
Property 'userAgentData' does not exist on type 'Navigator'

Since navigator.userAgent's information will be reduced so I want to migrate to User-Agent Client Hints but it shows error like this:

enter image description here

How do I solve this, please help. Many thanks

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

TypeScript doesn't ship with type declarations for the experimental Navigator.userAgentData property by default.

You could install e.g. this package which claims to add the types or just look at its implementation to see how to write the declarations yourself.

about 4 years ago · Juan Pablo Isaza Denunciar

0

You need to install types for Navigator.userAgentData

  1. Install user agent types from npm:

    npm i -D user-agent-data-types

  2. In the tsconfig.json add:

{
   "compilerOptions": {
    ...
    "types": [
      "./node_modules/user-agent-data-types"
     ]
   },
}

Now you should be able to see userAgentData property on navigator object.

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