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

224
Vistas
TypeError: Cannot read properties of null (reading 'length')

152 | const jobs = !!((_a = resume.profession) === null || _a === void 0 ? void 0 : _a.length) ? 153 | CARGOS OCUPADOS: ${convertArrayToText(professionDescription(resume))}. enter code here 154 | TEMPO DE EXPERIÊNCIA PROFISSIONAL TOTAL: ${literalTime(normalizedWorTime(resume))}. : "";

155 | const languages = !!resume.language.length ? IDIOMAS: ${convertArrayToText(getLanguageText(resume))}. : ""; 156 | const additional = PUBLICAÇÕES: ${publicationsText(resume)}. PREMIAÇÕES: ${awardsText(resume)}; 157 | return education + jobs + languages + additional; 158 | }

I have this error in my code, it came up suddenly, I've searched several forums but found nothing relevant.

Within Visual Studio Code, it gives the following error: "Could not open utils.js in the editor."

When running on Windows, file names are checked against a whitelist to protect against remote code execution attacks. File names may consist only of alphanumeric characters (all languages), periods, dashes, slashes, and underscores."

 152 |     const jobs = !!((_a = resume.profession) === null || _a === void 0 ? void 0 : _a.length) ?
  153 |         `CARGOS OCUPADOS: ${convertArrayToText(professionDescription(resume))}. 
  154 |   TEMPO DE EXPERIÊNCIA PROFISSIONAL TOTAL:  ${literalTime(normalizedWorTime(resume))}. ` : "";
> 155 |     const languages = !!resume.language.length ? ` IDIOMAS: ${convertArrayToText(getLanguageText(resume))}. ` : "";
  156 |     const additional = `PUBLICAÇÕES: ${publicationsText(resume)}. PREMIAÇÕES: ${awardsText(resume)}`;
  157 |     return education + jobs + languages + additional;
  158 | }

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

0

Looks like !!resume.language.length is failing because the language property is null. You could try optional chaining.

const resume = {language: null};
const languages = !!resume.language?.length;

console.log(languages);

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