Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

387
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!