yuicompressor error, not sure what is wrong?
Posted
by mrblah
on Stack Overflow
See other posts from Stack Overflow
or by mrblah
Published on 2009-06-25T02:00:56Z
Indexed on
2010/06/17
3:03 UTC
Read the original article
Hit count: 399
Hi,
Very confused here, trying out the yuicompressor on a simple javascript file.
My js file looks like:
function splitText(text)
{
return text.split('-')[1];
}
The error is:
[INFO] Using charset Cp1252
[Error] 1:20:illegal character [Error] 1:20:syntax error [Error] 1:40:illegal character [Error] 1:49:missing ; before statement [Error] 1:50:illegal character .. .. [Error] 7:3:missing | in compound statement [error] 1:0:compilation produced 38 syntax errors ...
Can someone please explain to me what is wrong?
© Stack Overflow or respective owner