Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
JavaScript error in build file by webpack

I have an error in my build file which created by webpack and there is this error:

Uncaught SyntaxError: Unexpected end of input.

I checked my file several times and I don't have any syntax error in build file and when I remove the function the error is still in the same line no matter what is in that line.
This is in explain of that error:

Uncaught SyntaxError: Unexpected end of input
Context
backgroundscript.js
Stack Trace
backgroundscript.js:2305 (anonymous function)

Code:

// Contents
"empty": function( elem ) {

  // http://www.w3.org/TR/selectors/#empty-pseudo
  // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
  //   but not by others (comment: 8; processing instruction: 7; etc.)
  // nodeType < 6 works because attributes (2) do not appear as children
  for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { // error is in here
    if ( elem.nodeType < 6 ) {
      return false;
    }
  }
  return true;
},

The error is in for loop line.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda