Tengo un error en mi archivo de compilación creado por webpack y hay este error:
Uncaught SyntaxError: Unexpected end of input. Revisé mi archivo varias veces y no tengo ningún error de sintaxis en el archivo de compilación y cuando elimino la función, el error sigue en la misma línea sin importar lo que haya en esa línea.
Esto es para explicar ese error:
Uncaught SyntaxError: Unexpected end of input Context backgroundscript.js Stack Trace backgroundscript.js:2305 (anonymous function)Código:
// 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; }, El error está en la línea for bucle.