Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LESS compile error ParseError: Syntax Error on line 1

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 on-line compile

like image 451
D.J Avatar asked May 11 '12 13:05

D.J


1 Answers

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.

like image 170
Chao Avatar answered Oct 07 '22 12:10

Chao