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

242
Views
Error de tipo: no se pueden leer las propiedades de nulo (leyendo 'ancho')

Tengo un problema con las propiedades de lectura, no sé por qué esto arroja un error, antes funcionaba bien, vea esto aquí hay un código donde muestra un error

 const ClarifaiFace=data.outputs[0].data.regions[0].region_info.bounding_box; const image = document.getElementById("inputimage"); const width = Number (image.width); const height= Number (image.height); console.log(width, height); return { leftCol:ClarifaiFace.left_Col * width, topRow:ClarifaiFace.top_Row * height, rightCol: width - (ClarifaiFace.right_Col * width), bottomRow: height-(ClarifaiFace.bottom_Row * height) } };

Error:

Error de tipo: no se pueden leer las propiedades de nulo (leyendo 'ancho')

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Parece que no existe tal elemento con id inputimage . Es por eso que la variable de image es null y, por lo tanto, obtiene el error sobre la lectura de la propiedad de nulo.

about 4 years ago · Juan Pablo Isaza Report

0

Lo que funcionó para mí cuando recibí este error fue cambiar "imagen de entrada" a "imagen de entrada" en getElementById en la variable 'imagen'. ¡Espero que esto ayude!

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!