I have a few javacsript files, and I'm using a js packer to pack them, then combine them all and include them in a page.
The problem is that after they are packed I'm getting this error:
Error: missing ; before statement
I assume it's because somewhere in the js file a new line is used instead of the ;
character, and since the packer removes new lines you get the error
so, how could I find where ;
is ommited in the script(s)?
There exists a tool called jslint which can statically analyse JavaScript source code with many option. It should tell you where the failure is. There is also an online version available. Check it out: http://www.jslint.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With