LESS compile error ParseError: Syntax Error on line 1
css, less, twitter-bootstrap
Solution
Are you using SimpLESS as your LESS compiler? If so there's a bug where it can't read files encoded in UTF-8 with BOM. Just convert your file to UTF-8 without BOM and it will work.
Problem
I am trying to do some customisation on my existing bootstrap less file by importing import my own less file into existing bootstrap.less. I thought it would be simple, however I've spend painful couple hours already to try to make new less compiled. every time I add my file in I got: ParseError: Syntax Error on line 1 in C:\xxx\content\bootst rap\less\xxx.form.less:9:999 8 } My own less file: ``` .form-unit { background-color: #F5F5F5; border-radius: 6px 6px 6px 6px; margin-bottom: 30px; padding: 10px; min-height: 170px; position:relative; } ``` Anyone have same problems? what did i missed??? I compiled it online not surprisingly it works, I am so confused