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

160
Views
La propiedad 'valor' no existe en el tipo 'EventTarget'.ts (2339) - TypeScript

Estoy tratando de usar la función onChange en un control deslizante, pero sigo recibiendo un error con el Valor. Estoy haciendo algo mal ?

Estoy usando TypeScript y ViteJS.

Error de valor

Mi código:

 <Slider color="success" aria-label="Small steps" defaultValue={0.00000005} step={1} marks min={5} max={20} valueLabelDisplay="auto" value={passwordLength} onChange={(e) => setPasswordLength(e.target.value)} />
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Mirando el error informado: la propiedad 'valor' no existe en el tipo 'EventTarget'

Dado que está utilizando un componente personalizado <Slider> , debe indicarle explícitamente a TypeScript el tipo de HTMLElement que es su objetivo.

Mira esto para más detalles

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!